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