Condividi tramite


Metodo TryGetProperty

Indicates the accessor for the property by name and usage, (for internal use). Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Protected Function TryGetProperty ( _
    name As String, _
    usage As ObjectPropertyUsages _
) As ObjectProperty
'Utilizzo
Dim name As String
Dim usage As ObjectPropertyUsages
Dim returnValue As ObjectProperty

returnValue = Me.TryGetProperty(name, _
    usage)
protected ObjectProperty TryGetProperty(
    string name,
    ObjectPropertyUsages usage
)
protected:
ObjectProperty^ TryGetProperty(
    String^ name, 
    ObjectPropertyUsages usage
)
member TryGetProperty : 
        name:string * 
        usage:ObjectPropertyUsages -> ObjectProperty 
protected function TryGetProperty(
    name : String, 
    usage : ObjectPropertyUsages
) : ObjectProperty

Parametri

Valore restituito

Tipo: Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .ObjectProperty
Null if the property does not meet the usage requirements or does not exist, else the corresponding property object.