Share via


IInternalConfigHost 介面

定義

定義內部 .NET 結構用於初始化應用程式組態屬性的介面。

public interface class IInternalConfigHost
public interface IInternalConfigHost
[System.Runtime.InteropServices.ComVisible(false)]
public interface IInternalConfigHost
type IInternalConfigHost = interface
[<System.Runtime.InteropServices.ComVisible(false)>]
type IInternalConfigHost = interface
Public Interface IInternalConfigHost
衍生
屬性

屬性

IsRemote

傳回值,指出組態是否為遠端。

SupportsChangeNotifications

傳回值,指出主應用程式組態是否支援變更告知。

SupportsLocation

傳回值,指出主應用程式組態是否支援位置標記 (Tag)。

SupportsPath

傳回值,指出主應用程式組態是否支援路徑標記。

SupportsRefresh

傳回值,指出主應用程式組態是否支援組態重新整理。

方法

CreateConfigurationContext(String, String)

建立並傳回應用程式組態之 ConfigurationElement 的內容物件。

CreateDeprecatedConfigContext(String)

建立並傳回應用程式組態的已取代內容物件。

DecryptSection(String, ProtectedConfigurationProvider, ProtectedConfigurationSection)

解密已加密的組態區段並傳回成為字串。

DeleteStream(String)

刪除針對應用程式組態檔執行 I/O 工作的 Stream 物件。

EncryptSection(String, ProtectedConfigurationProvider, ProtectedConfigurationSection)

加密組態區段並傳回成為字串。

GetConfigPathFromLocationSubPath(String, String)

根據位置子路徑,傳回應用程式組態檔的完整路徑。

GetConfigType(String, Boolean)

傳回 Type 物件,表示組態物件的型別。

GetConfigTypeName(Type)

傳回字串,表示代表組態型別之 Type 物件的型別名稱。

GetRestrictedPermissions(IInternalConfigRecord, PermissionSet, Boolean)
已淘汰.

讓組態與 PermissionSet 物件產生關聯。

GetStreamName(String)

傳回字串,表示與針對組態檔執行 I/O 工作之 Stream 物件相關聯的組態檔名稱。

GetStreamNameForConfigSource(String, String)

傳回字串,表示與針對遠端組態檔執行 I/O 工作之 Stream 物件相關聯的組態檔名稱。

GetStreamVersion(String)

傳回與組態檔相關聯之 Stream 物件的版本。

Impersonate()

指示主應用程式模擬並傳回內部 .NET 結構所需的 IDisposable 物件。

Init(IInternalConfigRoot, Object[])

初始化組態主應用程式。

InitForConfiguration(String, String, String, IInternalConfigRoot, Object[])

初始化組態物件。

IsAboveApplication(String)

傳回值,指出在組態階層架構中組態檔是否比應用程式組態位於更高的層級。

IsConfigRecordRequired(String)

傳回值,指出子組態路徑是否需要子記錄。

IsDefinitionAllowed(String, ConfigurationAllowDefinition, ConfigurationAllowExeDefinition)

判斷應用程式組態物件是否允許不同的 Type 定義。

IsFile(String)

傳回值,指出 Stream 物件用於讀取組態檔的檔案路徑是否為有效路徑。

IsFullTrustSectionWithoutAptcaAllowed(IInternalConfigRecord)

傳回值,指出組態區段是否需要完全信任的程式碼存取安全性層級,而且不允許 AllowPartiallyTrustedCallersAttribute 屬性停用隱含連結 (Implicit Link) 要求。

IsInitDelayed(IInternalConfigRecord)

傳回值,指出組態物件的初始化是否視為延遲。

IsLocationApplicable(String)

傳回值,指出組態物件是否支援位置標記。

IsSecondaryRoot(String)

傳回值,指出組態路徑是否指向應該將其內容視為根 (Root) 的組態節點。

IsTrustedConfigPath(String)

傳回值,指出組態路徑是否受信任。

OpenStreamForRead(String)

開啟 Stream,以便讀取組態檔。

OpenStreamForRead(String, Boolean)

開啟 Stream 物件,以便讀取組態檔。

OpenStreamForWrite(String, String, Object)

開啟 Stream 物件,以便寫入組態檔,或寫入用於建置組態檔的暫存檔。 允許 Stream 物件指定為範本,以便複製檔案屬性 (Attribute)。

OpenStreamForWrite(String, String, Object, Boolean)

開啟 Stream 物件,以便寫入組態檔。 允許 Stream 物件指定為範本,以便複製檔案屬性 (Attribute)。

PrefetchAll(String, String)

傳回值,這個值表示指定的 Stream 物件是否可以讀取整個組態檔。

PrefetchSection(String, String)

指示 IInternalConfigHost 物件讀取其相關聯組態檔的指定區段。

RequireCompleteInit(IInternalConfigRecord)

表示新的組態記錄需要完整初始化。

StartMonitoringStreamForChanges(String, StreamChangeCallback)

指示 IInternalConfigHost 物件監視組態檔中相關聯 Stream 物件的變更。

StopMonitoringStreamForChanges(String, StreamChangeCallback)

指示 IInternalConfigHost 物件停止監視相關聯的 Stream 物件,以取得組態檔中的變更。

VerifyDefinitionAllowed(String, ConfigurationAllowDefinition, ConfigurationAllowExeDefinition, IConfigErrorInfo)

確認組態記錄允許組態定義。

WriteCompleted(String, Boolean, Object)

指出組態檔的所有寫入作業是否已完成。

WriteCompleted(String, Boolean, Object, Boolean)

指出組態檔的所有寫入作業是否已完成,並指定是否應該判斷提示 (Assert) 使用權限。

適用於