AppDomainSetup.SandboxInterop 屬性

定義

取得或設定值,指出是否已停用應用程式定義域中 Interop 呼叫的介面快取,以便在每個呼叫上執行 QueryInterfaceGets or sets a value that indicates whether interface caching is disabled for interop calls in the application domain, so that a QueryInterface is performed on each call.

public:
 property bool SandboxInterop { bool get(); void set(bool value); };
public bool SandboxInterop { get; set; }
member this.SandboxInterop : bool with get, set
Public Property SandboxInterop As Boolean

屬性值

Boolean

如果針對使用目前 AppDomainSetup 物件所建立應用程式定義域中的 Interop 呼叫,停用介面快取,則為 true,否則為 falsetrue if interface caching is disabled for interop calls in application domains created with the current AppDomainSetup object; otherwise, false.

備註

停用介面快取對於 interop 呼叫的效能有顯著的影響。Disabling interface caching has a significant impact on the performance of interop calls.

此成員是在 .NET Framework 3.5 中引進。This member is introduced in the .NET Framework 3.5.

適用於