CustomProviderDataAttribute(String) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新的類別實例 CustomProviderDataAttribute ,並指定一串自訂資料。
public:
CustomProviderDataAttribute(System::String ^ customProviderData);
public CustomProviderDataAttribute(string customProviderData);
new System.Web.Profile.CustomProviderDataAttribute : string -> System.Web.Profile.CustomProviderDataAttribute
Public Sub New (customProviderData As String)
參數
- customProviderData
- String
提供給提供者的自訂資料串。
備註
此 CustomProviderDataAttribute 類別用於向自訂設定檔提供者提供帶有設定檔屬性的資料串。 自訂資料字串可設定為任意字串值,並透過 customProviderData 設定元素的屬性 <add> 來新增設定檔屬性。 如果 customProviderData 屬性被設定,該值會被 Attributes 放入該屬性的集合中,並以名稱「CustomProviderData」進行索引。
此建構器使用 .NET 框架,並非設計用來從應用程式程式碼呼叫。