Compartilhar via


Método TryGetPropertyValue(T) (String, T)

Attempts to get the property value. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxe

'Declaração
Function TryGetPropertyValue(Of T) ( _
    name As String, _
    <OutAttribute> ByRef value As T _
) As Boolean
'Uso
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 não dá suporte a tipos e métodos genéricos.

Parâmetros de tipo

  • T
    The type of the property value.

Parâmetros

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

Valor de retorno

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