ResXResourceWriterAddAlias(String, AssemblyName, Boolean) Method

Adds the specified alias to the mapping of aliases.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public void AddAlias(
	string aliasName,
	AssemblyName assemblyName,
	bool forceWriteImmediately = false
)

Parameters

aliasName  String
The name of the alias.
assemblyName  AssemblyName
The name of the assembly represented by aliasName.
forceWriteImmediately  Boolean  (Optional)
to write the alias immediately to the .resx file; just to add it to the inner mapping and write it only when the assembly is referenced for the first time. This parameter is optional.
Default value: .

Exceptions

ArgumentNullExceptionaliasName or assemblyName is .

See Also