Try and get a definition of a feature.
'Declaration
Public Function TryGetFeatureDefinition( _
ByVal As String, _
ByRef As Sila2.Feature, _
ByRef 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 ,
out Sila2.Feature ,
out string
)
public:
bool TryGetFeatureDefinition(
String^ ,
[Out] Sila2.Feature^ ,
[Out] String^
)
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.
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}");
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