ResXResourceSetSetAliasValue Method

Adds or replaces an assembly alias value in the current ResXResourceSet.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public void SetAliasValue(
	string alias,
	string assemblyName
)

Parameters

alias  String
The alias name to use instead of assemblyName in the saved .resx file.
assemblyName  String
The fully or partially qualified name of the assembly.

Implements

IExpandoResourceSetSetAliasValue(String, String)

Remarks

  Note

The added alias values are dumped on demand when saving: only when a resource type is defined in the Assembly, whose name is the assemblyName. Other alias names will be auto generated for non-specified assemblies.

Exceptions

ObjectDisposedExceptionThe ResXResourceSet is already disposed.
ArgumentNullExceptionassemblyName or alias is .

See Also