EnumObject.TryGetProperty(String, ObjectPropertyUsages) Method

Definition

accessor for a property by name and usage ( internal use )

protected Microsoft.SqlServer.Management.Sdk.Sfc.ObjectProperty TryGetProperty (string name, Microsoft.SqlServer.Management.Sdk.Sfc.ObjectPropertyUsages usage);
member this.TryGetProperty : string * Microsoft.SqlServer.Management.Sdk.Sfc.ObjectPropertyUsages -> Microsoft.SqlServer.Management.Sdk.Sfc.ObjectProperty
Protected Function TryGetProperty (name As String, usage As ObjectPropertyUsages) As ObjectProperty

Parameters

name
String

name of the property

usage
ObjectPropertyUsages

intended usage

Returns

null if the property does not meet the usage requirement or does not exist, else the coresponding property object

Applies to