Compartir a través de


GetProperty 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
Protected Function GetProperty ( _
    name As String, _
    usage As ObjectPropertyUsages _
) As ObjectProperty
'Uso
Dim name As String
Dim usage As ObjectPropertyUsages
Dim returnValue As ObjectProperty

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

Parámetros

Valor devuelto

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