IDesignerLoaderHost2 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供介面,可延伸 IDesignerLoaderHost 指定載入設計文件時是否容忍錯誤。
public interface class IDesignerLoaderHost2 : IServiceProvider, System::ComponentModel::Design::Serialization::IDesignerLoaderHost
public interface class IDesignerLoaderHost2 : System::ComponentModel::Design::Serialization::IDesignerLoaderHost
public interface IDesignerLoaderHost2 : IServiceProvider, System.ComponentModel.Design.Serialization.IDesignerLoaderHost
public interface IDesignerLoaderHost2 : System.ComponentModel.Design.Serialization.IDesignerLoaderHost
type IDesignerLoaderHost2 = interface
interface IDesignerLoaderHost
interface IDesignerHost
interface IServiceContainer
interface IServiceProvider
type IDesignerLoaderHost2 = interface
interface IDesignerHost
interface IServiceContainer
interface IServiceProvider
interface IDesignerLoaderHost
Public Interface IDesignerLoaderHost2
Implements IDesignerLoaderHost, IServiceProvider
Public Interface IDesignerLoaderHost2
Implements IDesignerLoaderHost
- 實作
備註
使用 IDesignerLoaderHost2 介面指定設計載入器在反序列化過程中發生錯誤時是否能繼續載入。
屬性
| 名稱 | Description |
|---|---|
| CanReloadWithErrors |
會取得或設定一個值,表示是否可以帶錯誤重新載入。 |
| Container |
他拿到這個設計師主機的容器。 (繼承來源 IDesignerHost) |
| IgnoreErrorsDuringReload |
取得或設定一個值,指示呼叫時 Reload() 是否應忽略錯誤。 |
| InTransaction |
會獲得一個值,表示設計主機目前是否正在交易中。 (繼承來源 IDesignerHost) |
| Loading |
會取得一個值,表示設計主機目前是否正在載入文件。 (繼承來源 IDesignerHost) |
| RootComponent |
取得用作當前設計根元件的基底類別實例。 (繼承來源 IDesignerHost) |
| RootComponentClassName |
會獲得設計類別的完整限定名稱。 (繼承來源 IDesignerHost) |
| TransactionDescription |
取得目前交易的描述。 (繼承來源 IDesignerHost) |
方法
事件
| 名稱 | Description |
|---|---|
| Activated |
當此設計者被啟動時發生。 (繼承來源 IDesignerHost) |
| Deactivated |
當此設計者被停用時發生。 (繼承來源 IDesignerHost) |
| LoadComplete |
當設計器完成載入文件時會發生。 (繼承來源 IDesignerHost) |
| TransactionClosed |
新增事件處理程式。TransactionClosed (繼承來源 IDesignerHost) |
| TransactionClosing |
新增事件處理程式。TransactionClosing (繼承來源 IDesignerHost) |
| TransactionOpened |
新增事件處理程式。TransactionOpened (繼承來源 IDesignerHost) |
| TransactionOpening |
新增事件處理程式。TransactionOpening (繼承來源 IDesignerHost) |