EnumObject.TryGetProperty(String, ObjectPropertyUsages) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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