XamlObjectWriter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 XamlObjectWriter 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| XamlObjectWriter(XamlSchemaContext) |
利用 XAML 結構上下文初始化該類別的新實例 XamlObjectWriter ,該結構上下文由 XamlReader。 |
| XamlObjectWriter(XamlSchemaContext, XamlObjectWriterSettings) |
利用 a XamlObjectWriter 及其設定所使用的上下文初始化該XamlReader類別的新實例。 |
XamlObjectWriter(XamlSchemaContext)
利用 XAML 結構上下文初始化該類別的新實例 XamlObjectWriter ,該結構上下文由 XamlReader。
public:
XamlObjectWriter(System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlObjectWriter(System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlObjectWriter : System.Xaml.XamlSchemaContext -> System.Xaml.XamlObjectWriter
Public Sub New (schemaContext As XamlSchemaContext)
參數
- schemaContext
- XamlSchemaContext
一個與提供節點的 XAML 讀取器共享的 XAML 架構上下文。
例外狀況
schemaContext 是 null。
適用於
XamlObjectWriter(XamlSchemaContext, XamlObjectWriterSettings)
利用 a XamlObjectWriter 及其設定所使用的上下文初始化該XamlReader類別的新實例。
public:
XamlObjectWriter(System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::XamlObjectWriterSettings ^ settings);
public XamlObjectWriter(System.Xaml.XamlSchemaContext schemaContext, System.Xaml.XamlObjectWriterSettings settings);
new System.Xaml.XamlObjectWriter : System.Xaml.XamlSchemaContext * System.Xaml.XamlObjectWriterSettings -> System.Xaml.XamlObjectWriter
Public Sub New (schemaContext As XamlSchemaContext, settings As XamlObjectWriterSettings)
參數
- schemaContext
- XamlSchemaContext
一個與提供節點的 XAML 讀取器共享的 XAML 架構上下文。
- settings
- XamlObjectWriterSettings
一個設定物件,指定特定的行為與輸出選項 XamlObjectWriter 。
例外狀況
schemaContext 是 null。