ModuleBuilder.GetStringConstant(String) 方法

定義

回傳模組常數池中給定字串的標記。

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

參數

str
String

字串加入模組的常數池。

傳回

字串在常數池中的標記。

例外狀況

strnull

備註

str 已定義,則會返回現有的代幣。

適用於