TryGetPropertyValue(T) 方法 (String, T)
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(Of T) ( _
name As String, _
<OutAttribute> ByRef value As T _
) As Boolean
'用途
Dim instance As ISfcPropertySet
Dim name As String
Dim value As T
Dim returnValue As Boolean
returnValue = instance.TryGetPropertyValue(name, _
value)
bool TryGetPropertyValue<T>(
string name,
out T value
)
generic<typename T>
bool TryGetPropertyValue(
String^ name,
[OutAttribute] T% value
)
abstract TryGetPropertyValue :
name:string *
value:'T byref -> bool
JScript 不支援一般類型和方法。
型別參數
- T
The type of the property value.
參數
- name
型別:System. . :: . .String
The name of the property.
- value
型別:T%
An Object that represents the property value.
傳回值
型別:System. . :: . .Boolean
true if the property value is successfully retrieved; otherwise, false.