ModuleBuilder.GetStringConstant(String) Metodo

Definizione

Restituisce il token della stringa specificata nel pool di costanti del modulo.

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

Parametri

str
String

Stringa da aggiungere al pool di costanti del modulo.

Valori restituiti

Token della stringa nel pool costante.

Eccezioni

str è null.

Commenti

Se str è già stato definito, verrà restituito il token esistente.

Si applica a