Sdílet prostřednictvím


SfcPropertyCollection.TryGetProperty Method

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Function TryGetProperty ( _
    propertyName As String, _
    <OutAttribute> ByRef property As ISfcProperty _
) As Boolean
'Usage
Dim instance As SfcPropertyCollection
Dim propertyName As String
Dim property As ISfcProperty
Dim returnValue As Boolean

returnValue = instance.TryGetProperty(propertyName, _
    property)
public bool TryGetProperty(
    string propertyName,
    out ISfcProperty property
)
public:
virtual bool TryGetProperty(
    String^ propertyName, 
    [OutAttribute] ISfcProperty^% property
) sealed
abstract TryGetProperty : 
        propertyName:string * 
        property:ISfcProperty byref -> bool 
override TryGetProperty : 
        propertyName:string * 
        property:ISfcProperty byref -> bool 
public final function TryGetProperty(
    propertyName : String, 
    property : ISfcProperty
) : boolean

Parameters

  • propertyName
    Type: System.String
    A string that represents the property name.

Return Value

Type: System.Boolean
true if property tries to get its specified property; otherwise, false.

Implements

ISfcPropertySet.TryGetProperty(String, ISfcProperty%)