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^)
.NET Framework (current version)
Returns the token of the given string in the module’s constant pool.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- str
-
Type:
System::String^
The string to add to the module's 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
Available since 1.1
Silverlight
Available since 2.0
Show: