共用方式為


TryGetProperty 方法

Attempts to get the property metadata. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

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

語法

'宣告
Function TryGetProperty ( _
    name As String, _
    <OutAttribute> ByRef property As ISfcProperty _
) As Boolean
'用途
Dim instance As ISfcPropertySet
Dim name As String
Dim property As ISfcProperty
Dim returnValue As Boolean

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

參數

傳回值

型別:System. . :: . .Boolean
true if the property metadata is successfully retrieved; otherwise, false.