ServerStub.CustomWrite - Méthode
Customized serialization of the object into OData format.
Espace de noms : Microsoft.SharePoint.Client
Assembly : Microsoft.SharePoint.Client.ServerRuntime (dans Microsoft.SharePoint.Client.ServerRuntime.dll)
Syntaxe
'Déclaration
Protected Overridable Function CustomWrite ( _
value As Object, _
path As Uri, _
writer As ODataWriter, _
query As RESTfulQuery, _
proxyContext As ProxyContext _
) As Boolean
'Utilisation
Dim value As Object
Dim path As Uri
Dim writer As ODataWriter
Dim query As RESTfulQuery
Dim proxyContext As ProxyContext
Dim returnValue As Boolean
returnValue = Me.CustomWrite(value, _
path, writer, query, proxyContext)
protected virtual bool CustomWrite(
Object value,
Uri path,
ODataWriter writer,
RESTfulQuery query,
ProxyContext proxyContext
)
Paramètres
value
Type : System.ObjectThe object to be serialized.
path
Type : System.UriThe URL path to be associated with the object. It could be null. When it's null, the method should use the URL path determined by the object.
writer
Type : ODataWriterThe oData writer.
query
Type : Microsoft.SharePoint.Client.RESTfulQueryThe query information.
proxyContext
Type : Microsoft.SharePoint.Client.ProxyContextThe proxy context.
Valeur renvoyée
Type : System.Boolean
true if the object is custom serialized; otherwise, false and let the system to serialize the object into oData format.