Rediger

Del via


CodeDomSerializerBase.SerializeResourceInvariant Method

Definition

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

protected:
 void SerializeResourceInvariant(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::String ^ resourceName, System::Object ^ value);
protected void SerializeResourceInvariant (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, string resourceName, object value);
protected void SerializeResourceInvariant (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, string resourceName, object? value);
member this.SerializeResourceInvariant : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * string * obj -> unit
Protected Sub SerializeResourceInvariant (manager As IDesignerSerializationManager, resourceName As String, value As Object)

Parameters

manager
IDesignerSerializationManager

The IDesignerSerializationManager to use for serialization.

resourceName
String

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

value
Object

The object to serialize.

Remarks

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.

Applies to

See also