XmlnsPrefixAttribute(String, String) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 XmlnsPrefixAttribute 類別的新執行個體,以初始化 XmlNamespace 和 Prefix。
public:
XmlnsPrefixAttribute(System::String ^ xmlNamespace, System::String ^ prefix);
public XmlnsPrefixAttribute (string xmlNamespace, string prefix);
new System.Workflow.ComponentModel.Serialization.XmlnsPrefixAttribute : string * string -> System.Workflow.ComponentModel.Serialization.XmlnsPrefixAttribute
Public Sub New (xmlNamespace As String, prefix As String)
參數
- xmlNamespace
- String
String,其中包含 XmlNamespace 的值。
例外狀況
xmlNamespace
為 null 參考 (在 Visual Basic 中為 Nothing
)。
-或-
prefix
為 null 參考 (在 Visual Basic 中為 Nothing
)。