GlobalObject::GetSerializer Method (Type^)

 

Returns the checked serializer of the specified type for the global object.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

public:
Object^ GetSerializer(
	Type^ serializerType
)

Parameters

serializerType
Type: System::Type^

The type of serializer to retrieve.

Return Value

Type: System::Object^

A serializer of the specified type if supported; otherwise, null.

Exception Condition
ArgumentNullException

serializerType is null.

InvalidOperationException

The non-null serializer retrieved is itself not serializable.

The GetSerializer method safely wraps a call to the GetSerializerCore method, checking the parameter and the return value. GetSerializer ensures that the returned serializer must itself be serializable so that it is capable of marshaling across domain boundaries if required.

Return to top
Show: