Partager via


ServerStub.GetProperty - Méthode

Returns a value for a property for an object of the type corresponding to the derived ServerStub implementation.

Espace de noms :  Microsoft.SharePoint.Client
Assembly :  Microsoft.SharePoint.Client.ServerRuntime (dans Microsoft.SharePoint.Client.ServerRuntime.dll)

Syntaxe

'Déclaration
Protected Friend Overridable Function GetProperty ( _
    obj As Object, _
    propertyName As String, _
    proxyContext As ProxyContext _
) As Object
'Utilisation
Dim obj As Object
Dim propertyName As String
Dim proxyContext As ProxyContext
Dim returnValue As Object

returnValue = Me.GetProperty(obj, _
    propertyName, proxyContext)
protected internal virtual Object GetProperty(
    Object obj,
    string propertyName,
    ProxyContext proxyContext
)

Paramètres

  • obj
    Type : System.Object

    The object to retrieve a property from.

  • propertyName
    Type : System.String

    The name of the property to retrieve data for.

Valeur renvoyée

Type : System.Object
The value of the property.

Exceptions

Exception Condition
InvalidClientQueryException

The property does not exist.

Remarques

Implementing derivations of ServerStub should throw an InvalidClientQueryException if the property does not exist on the downstream type.

Voir aussi

Référence

ServerStub classe

ServerStub - Membres

Microsoft.SharePoint.Client - Espace de noms