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.ObjectThe object to retrieve a property from.
propertyName
Type : System.StringThe name of the property to retrieve data for.
proxyContext
Type : Microsoft.SharePoint.Client.ProxyContextContains information about the general state of a client request and response operation.
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.