RegistrationClassContext 列舉

定義

指定一組執行內容,其中類別物件將可讓建構執行個體的要求使用。Specifies the set of execution contexts in which a class object will be made available for requests to construct instances.

此列舉具有 FlagsAttribute 個屬性允許以位元方式合併其成員值。

public enum class RegistrationClassContext
[System.Flags]
public enum RegistrationClassContext
type RegistrationClassContext = 
Public Enum RegistrationClassContext
繼承
RegistrationClassContext
屬性

欄位

DisableActivateAsActivator 32768

僅針對此啟動過程 (Activation) 停用 Activate-As-Activator (AAA) 啟動過程。Disables activate-as-activator (AAA) activations for this activation only.

EnableActivateAsActivator 65536

僅針對此啟動過程啟用 activate-as-activator (AAA) 啟動過程。Enables activate-as-activator (AAA) activations for this activation only.

EnableCodeDownload 8192

允許從目錄服務或網際網路下載程式碼。Allows the downloading of code from the Directory Service or the Internet.

FromDefaultContext 131072

從目前 Apartment 的預設內容開始這個啟動過程。Begin this activation from the default context of the current apartment.

InProcessHandler 2

管理這個類別之物件的程式碼是同處理序 (In-Process) 處理常式。The code that manages objects of this class is an in-process handler.

InProcessHandler16 32

未使用。Not used.

InProcessServer 1

建立並管理這個類別之物件的程式碼是 DLL,而且它與指定類別內容之函式的呼叫端在相同的處理序中執行。The code that creates and manages objects of this class is a DLL that runs in the same process as the caller of the function specifying the class context.

InProcessServer16 8

不適用。Not used.

LocalServer 4

建立並管理這個類別之物件的 EXE 程式碼在相同的電腦上執行,但載入不同的處理序空間中。The EXE code that creates and manages objects of this class runs on same machine but is loaded in a separate process space.

NoCodeDownload 1024

不允許從目錄服務或網際網路下載程式碼。Disallows the downloading of code from the Directory Service or the Internet.

NoCustomMarshal 4096

指定如果啟動過程使用自訂封送處理 (Marshaling) 時,是否會失敗。Specifies whether activation fails if it uses custom marshaling.

NoFailureLog 16384

覆寫失敗的記錄。Overrides the logging of failures.

RemoteServer 16

遠端電腦內容。A remote machine context.

Reserved1 64

未使用。Not used.

Reserved2 128

未使用。Not used.

Reserved3 256

未使用。Not used.

Reserved4 512

未使用。Not used.

Reserved5 2048

未使用。Not used.

備註

RegistrationClassContext列舉中的值會classContextRegisterTypeForComClients方法的參數中使用。The values in the RegistrationClassContext enumeration are used in the classContext parameter of the RegisterTypeForComClients method. 這些值與在 com CLSCTX列舉中定義的值相同, 後者會在對 COM API dwClsContext CoRegisterClassObject的呼叫中當做參數使用。These values are the same as those defined in the COM CLSCTX enumeration, which is used as the dwClsContext parameter in calls to the COM API CoRegisterClassObject.

如需CoRegisterClassObjectCLSCTX列舉的詳細資訊, 請參閱 MSDN library。For more information about CoRegisterClassObject and the CLSCTX enumeration, see the MSDN library.

適用於

另請參閱