Export (0) Print
Expand All

ModuleBuilder.GetStringConstant Method

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

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

[SecuritySafeCriticalAttribute]
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.

ExceptionCondition
ArgumentNullException

str is null.

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

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft