ServerStub.WriteQueryResult - Méthode
Writes the result of an object query to a JSON stream.
Espace de noms : Microsoft.SharePoint.Client
Assembly : Microsoft.SharePoint.Client.ServerRuntime (dans Microsoft.SharePoint.Client.ServerRuntime.dll)
Syntaxe
'Déclaration
Protected Sub WriteQueryResult ( _
writer As JsonWriter, _
obj As Object, _
objQuery As ClientObjectQuery, _
proxyContext As ProxyContext _
)
'Utilisation
Dim writer As JsonWriter
Dim obj As Object
Dim objQuery As ClientObjectQuery
Dim proxyContext As ProxyContext
Me.WriteQueryResult(writer, obj, objQuery, _
proxyContext)
protected void WriteQueryResult(
JsonWriter writer,
Object obj,
ClientObjectQuery objQuery,
ProxyContext proxyContext
)
Paramètres
writer
Type : Microsoft.SharePoint.Client.JsonWriterThe JSON stream to write to.
obj
Type : System.ObjectThe object instance to read the property value from.
objQuery
Type : Microsoft.SharePoint.Client.ClientObjectQueryThe metadata used to determine what facets of the object to write to the stream.
proxyContext
Type : Microsoft.SharePoint.Client.ProxyContextContains information about the general state of a client request and response operation.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The writer parameter value is une référence Null (Rien dans Visual Basic), the proxyContext parameter value is une référence Null (Rien dans Visual Basic), or both are une référence Null (Rien dans Visual Basic). |
ServerProxyNotFoundException | The proxy server was not found. |