TryGetPropertyValue 方法 (String, Object)
不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Public Function TryGetPropertyValue ( _
propertyName As String, _
<OutAttribute> ByRef value As Object _
) As Boolean
'用途
Dim instance As SfcPropertyCollection
Dim propertyName As String
Dim value As Object
Dim returnValue As Boolean
returnValue = instance.TryGetPropertyValue(propertyName, _
value)
public bool TryGetPropertyValue(
string propertyName,
out Object value
)
public:
virtual bool TryGetPropertyValue(
String^ propertyName,
[OutAttribute] Object^% value
) sealed
abstract TryGetPropertyValue :
propertyName:string *
value:Object byref -> bool
override TryGetPropertyValue :
propertyName:string *
value:Object byref -> bool
public final function TryGetPropertyValue(
propertyName : String,
value : Object
) : boolean
參數
- propertyName
型別:System. . :: . .String
A string that represents the property name.
- value
型別:System. . :: . .Object%
The value of the object.
傳回值
型別:System. . :: . .Boolean
true if the Property tries to get the property value; otherwise, false.
實作
ISfcPropertySet. . :: . .TryGetPropertyValue(String, Object%)