SerializationUtilities.GetValue<T> Method (SerializationContext, String)
Converts a string to the given type
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
声明
Public Shared Function GetValue(Of T) ( _
serializationContext As SerializationContext, _
input As String _
) As T
public static T GetValue<T>(
SerializationContext serializationContext,
string input
)
public:
generic<typename T>
static T GetValue(
SerializationContext^ serializationContext,
String^ input
)
static member GetValue :
serializationContext:SerializationContext *
input:string -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
Type to convert to.
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
Contextual information
- input
Type: System.String
The string to convert
Return Value
Type: T
The deserialized object
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.