Partilhar via


Método TryGetProperty

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

Parâmetros

Valor de retorno

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

Implementa

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