共用方式為


JsonReader.ReadEnum<T> Method

Creates a generic enumeration value from the JSON string. This member is reserved for internal use and is not intended to be used directly from your code.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Function ReadEnum(Of T) As T
'Usage
Dim instance As JsonReader
Dim returnValue As T

returnValue = instance.ReadEnum()
public T ReadEnum<T>()

Type Parameters

  • T
    The specified type of the enumeration value.

Return Value

Type: T
Double .

Remarks

The type of the token that can be used to create the enumeration value is Long. This method changes the type of the enumeration value to the specified generic type.

See Also

Reference

JsonReader Class

JsonReader Members

Microsoft.SharePoint.Client Namespace