Partilhar via


Método SfcPropertyCollection.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

  • propertyName
    Tipo: System.String
    A string that represents the property name.

Valor de retorno

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

Implementa

ISfcPropertySet.TryGetProperty(String, ISfcProperty%)

Consulte também

Referência

SfcPropertyCollection Classe

Namespace Microsoft.SqlServer.Management.Sdk.Sfc