Indicates the accessor for the property by name and usage, (for internal use). 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Protected Function TryGetProperty ( _
name As String, _
usage As ObjectPropertyUsages _
) As ObjectProperty
'用途
Dim name As String
Dim usage As ObjectPropertyUsages
Dim returnValue As ObjectProperty
returnValue = Me.TryGetProperty(name, _
usage)
protected ObjectProperty TryGetProperty(
string name,
ObjectPropertyUsages usage
)
protected:
ObjectProperty^ TryGetProperty(
String^ name,
ObjectPropertyUsages usage
)
member TryGetProperty :
name:string *
usage:ObjectPropertyUsages -> ObjectProperty
protected function TryGetProperty(
name : String,
usage : ObjectPropertyUsages
) : ObjectProperty
參數
- name
型別:System.String
The name of the property.
- usage
型別:Microsoft.SqlServer.Management.Sdk.Sfc.ObjectPropertyUsages
The intended usage.
傳回值
型別:Microsoft.SqlServer.Management.Sdk.Sfc.ObjectProperty
Null if the property does not meet the usage requirements or does not exist, else the corresponding property object.