This documentation is archived and is not being maintained.

StronglyTypedResourceBuilder.Create Method (IDictionary, String, String, CodeDomProvider, Boolean, String[])

Generates a class file that contains strongly-typed properties that match the resources referenced in the specified collection.

Namespace: System.Resources.Tools
Assembly: System.Design (in

public static CodeCompileUnit Create (
	IDictionary resourceList,
	string baseName,
	string generatedCodeNamespace,
	CodeDomProvider codeProvider,
	bool internalClass,
	out string[] unmatchable
public static CodeCompileUnit Create (
	IDictionary resourceList, 
	String baseName, 
	String generatedCodeNamespace, 
	CodeDomProvider codeProvider, 
	boolean internalClass, 
	/** @attribute OutAttribute() */ /** @ref */ String[] unmatchable
Not applicable.



An IDictionary collection where each dictionary entry key/value pair is the name of a resource and the value of the resource.


The name of the class to be generated.


The namespace of the class to be generated.


A CodeDomProvider class that provides the language in which the class will be generated.


true to generate an internal class; false to generate a public class.


A String array that contains each resource name for which a property cannot be generated. Typically, a property cannot be generated because the resource name is not a valid identifier.

Return Value

A CodeCompileUnit container.

Exception typeCondition


resourceList, basename, or codeProvider is a null reference (Nothing in Visual Basic).

Use the Create method to generate a class that provides strongly-typed, read-only access to the resources that are contained in the resourceList parameter.

The StronglyTypedResourceBuilder class ignores any resource name that begins with the characters "$" or ">>". The resource names "Culture" and "ResourceManager" are invalid identifiers.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0