Compartir a través de


SfcPropertyCollection.TryGetProperty Método

No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server.

Espacio de nombres:  Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado:  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxis

'Declaración
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 devuelto

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

Implementa

ISfcPropertySet.TryGetProperty(String, ISfcProperty%)

Vea también

Referencia

SfcPropertyCollection Clase

Espacio de nombres Microsoft.SqlServer.Management.Sdk.Sfc