Returns the token of the given string in the module's constant pool.
[Visual Basic] Public Function GetStringConstant( _ ByVal str As String _ ) As StringToken [C#] public StringToken GetStringConstant( string str ); [C++] public: StringToken GetStringConstant( String* str ); [JScript] public function GetStringConstant( str : String ) : StringToken;
Returns the StringToken of the string added to the constant pool.
Exception Type | Condition |
---|---|
ArgumentNullException | if str is a null reference (in Visual Basic Nothing) |
If str has already been defined, the existing token will be returned.
ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace