共用方式為


IndexedString(String) 建構函式

定義

初始化 IndexedString 類別的新執行個體。

public:
 IndexedString(System::String ^ s);
public IndexedString(string s);
new System.Web.UI.IndexedString : string -> System.Web.UI.IndexedString
Public Sub New (s As String)

參數

s
String

字串。

例外狀況

傳遞給建構子的字串參數為 nullEmpty

備註

建構子確保 IndexedString 傳遞的字串不是 nullEmpty,然後將其指派給屬性 Value

適用於