共用方式為


SfcPropertyCollection.TryGetProperty 方法

不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public Function TryGetProperty ( _
    propertyName As String, _
    <OutAttribute> ByRef property As ISfcProperty _
) As Boolean
'用途
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

參數

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

傳回值

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

實作

ISfcPropertySet.TryGetProperty(String, ISfcProperty%)

請參閱

參考

SfcPropertyCollection 類別

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間