Partager via


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

Attempts to get the property value. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Function TryGetPropertyValue(Of T) ( _
    name As String, _
    <OutAttribute> ByRef value As T _
) As Boolean
'Utilisation
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 ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

  • T
    The type of the property value.

Paramètres

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

Valeur de retour

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