Singer Instruments PIXL Client
TryGetFeatureDefinition Method
Example 



SI.PIXL.Client Namespace > PIXLClient Class : TryGetFeatureDefinition Method
The identifier of the feature.
The feature definition.
The message.
Try and get a definition of a feature.
Syntax
'Declaration
 
Public Function TryGetFeatureDefinition( _
   ByVal featureIdentifier As String, _
   ByRef feature As Sila2.Feature, _
   ByRef message As String _
) As Boolean
'Usage
 
Dim instance As PIXLClient
Dim featureIdentifier As String
Dim feature As Sila2.Feature
Dim message As String
Dim value As Boolean
 
value = instance.TryGetFeatureDefinition(featureIdentifier, feature, message)
public bool TryGetFeatureDefinition( 
   string featureIdentifier,
   out Sila2.Feature feature,
   out string message
)
public:
bool TryGetFeatureDefinition( 
   String^ featureIdentifier,
   [Out] Sila2.Feature^ feature,
   [Out] String^ message
) 

Parameters

featureIdentifier
The identifier of the feature.
feature
The feature definition.
message
The message.

Return Value

True if the definition could be returned, else false.
Example
This sample shows how to use the TryGetFeatureDefinition method.
// Try and get the feature definition
if (pixl.TryGetFeatureDefinition("featureIdentifier", out Feature feature, out string Message)
    Console.WriteLine($"Got {feature}.");
else
    Console.WriteLine($"Couldn't get feature with identifier {featureIdentifier} because {message}");
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PIXLClient Class
PIXLClient Members