Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ModuleBuilder::GetStringConstant Method (String^)

 

Returns the token of the given string in the module’s constant pool.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
StringToken GetStringConstant(
	String^ str
)

Parameters

str
Type: System::String^

The string to add to the module's constant pool.

Return Value

Type: System.Reflection.Emit::StringToken

The token of the string in the constant pool.

Exception Condition
ArgumentNullException

str is null.

If str has already been defined, the existing token will be returned.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show:
© 2017 Microsoft