ModuleBuilder.GetStringConstant(String) Método
Definição
Retorna o token de cadeia de caracteres especificada no pool de constante do módulo.Returns the token of the given string in the module's constant pool.
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
Parâmetros
- str
- String
A cadeia de caracteres a ser adicionada ao pool de constante do módulo.The string to add to the module's constant pool.
Retornos
O token da cadeia de caracteres no pool de constante.The token of the string in the constant pool.
Exceções
str é null.str is null.
Comentários
Se str já tiver sido definido, o token existente será retornado.If str has already been defined, the existing token will be returned.