Condividi tramite


Metodo TryGetProperty

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
Public Function TryGetProperty ( _
    propertyName As String, _
    <OutAttribute> ByRef property As ISfcProperty _
) As Boolean
'Utilizzo
Dim instance As SfcPropertyCollection
Dim propertyName As String
Dim property As ISfcProperty
Dim returnValue As Boolean

returnValue = instance.TryGetProperty(propertyName, _
    property)
public bool TryGetProperty(
    string propertyName,
    out ISfcProperty property
)
public:
virtual bool TryGetProperty(
    String^ propertyName, 
    [OutAttribute] ISfcProperty^% property
) sealed
abstract TryGetProperty : 
        propertyName:string * 
        property:ISfcProperty byref -> bool 
override TryGetProperty : 
        propertyName:string * 
        property:ISfcProperty byref -> bool 
public final function TryGetProperty(
    propertyName : String, 
    property : ISfcProperty
) : boolean

Parametri

Valore restituito

Tipo: System. . :: . .Boolean
true if property tries to get its specified property; otherwise, false.

Implementa

ISfcPropertySet. . :: . .TryGetProperty(String, ISfcProperty%)