不要直接在程式碼中參照此成員。其支援 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.
- property
型別:Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty%
The SfcProperty in the collection.
傳回值
型別:System.Boolean
true if property tries to get its specified property; otherwise, false.
實作
ISfcPropertySet.TryGetProperty(String, ISfcProperty%)