CodeDomSerializerBase.SerializeResourceInvariant Method (IDesignerSerializationManager, String, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Serializes the given object into a resource bundle using the given resource name.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

protected void SerializeResourceInvariant(
	IDesignerSerializationManager manager,
	string resourceName,
	object value


Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager

The IDesignerSerializationManager to use for serialization.

Type: System.String

The name of the resource bundle into which value will be serialized.

Type: System.Object

The object to serialize.

The resource is always written to the invariant culture. The value parameter must be serializable.

The SerializeResourceInvariant method requires an IResourceService to obtain a ResourceWriter to write resources for the correct culture. If this service is not available, SerializeResource will instead build a binary object in code that represents the resource.

.NET Framework
Available since 2.0
Return to top