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.

参数

  • value
    类型:T%
    An Object that represents the property value.

返回值

类型:System. . :: . .Boolean
true if the property value is successfully retrieved; otherwise, false.