ModuleBuilder.GetStringConstant(String) Methode

Definitie

Retourneert het token van de opgegeven tekenreeks in de constante pool van de module.

public:
 System::Reflection::Emit::StringToken GetStringConstant(System::String ^ str);
public System.Reflection.Emit.StringToken GetStringConstant(string str);
member this.GetStringConstant : string -> System.Reflection.Emit.StringToken
Public Function GetStringConstant (str As String) As StringToken

Parameters

str
String

De tekenreeks die moet worden toegevoegd aan de constante pool van de module.

Retouren

Het token van de tekenreeks in de constante pool.

Uitzonderingen

str is null.

Opmerkingen

Als str dit al is gedefinieerd, wordt het bestaande token geretourneerd.

Van toepassing op