ModuleBuilder.GetStringConstant(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳模組常數池中給定字串的標記。
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
字串加入模組的常數池。
傳回
字串在常數池中的標記。
例外狀況
str 是 null。
備註
若 str 已定義,則會返回現有的代幣。