Redigera

Dela via


ResXResourceWriter.AddMetadata Method

Definition

Adds design-time properties to the list of resources to write.

Overloads

AddMetadata(String, Byte[])

Adds a design-time property whose value is specified as a byte array to the list of resources to write.

AddMetadata(String, Object)

Adds a design-time property whose value is specified as an object to the list of resources to write.

AddMetadata(String, String)

Adds a design-time property whose value is specified as a string to the list of resources to write.

AddMetadata(String, Byte[])

Adds a design-time property whose value is specified as a byte array to the list of resources to write.

public:
 void AddMetadata(System::String ^ name, cli::array <System::Byte> ^ value);
public void AddMetadata (string name, byte[] value);
member this.AddMetadata : string * byte[] -> unit
Public Sub AddMetadata (name As String, value As Byte())

Parameters

name
String

The name of a property.

value
Byte[]

A byte array containing the value of the property to add.

Exceptions

The resource specified by the name parameter has already been added.

Applies to

AddMetadata(String, Object)

Adds a design-time property whose value is specified as an object to the list of resources to write.

public:
 void AddMetadata(System::String ^ name, System::Object ^ value);
public void AddMetadata (string name, object value);
public void AddMetadata (string name, object? value);
member this.AddMetadata : string * obj -> unit
Public Sub AddMetadata (name As String, value As Object)

Parameters

name
String

The name of a property.

value
Object

An object that is the value of the property to add.

Exceptions

The resource specified by the name parameter has already been added.

Applies to

AddMetadata(String, String)

Adds a design-time property whose value is specified as a string to the list of resources to write.

public:
 void AddMetadata(System::String ^ name, System::String ^ value);
public void AddMetadata (string name, string value);
public void AddMetadata (string name, string? value);
member this.AddMetadata : string * string -> unit
Public Sub AddMetadata (name As String, value As String)

Parameters

name
String

The name of a property.

value
String

A string that is the value of the property to add.

Exceptions

The resource specified by the name property has already been added.

Applies to