IRegistrationServices.RegisterAssembly 메서드

정의

COM에서 만들 수 있도록 관리되는 어셈블리에 클래스를 등록합니다.

public:
 bool RegisterAssembly(System::Reflection::Assembly ^ assembly, System::Runtime::InteropServices::AssemblyRegistrationFlags flags);
public bool RegisterAssembly(System.Reflection.Assembly assembly, System.Runtime.InteropServices.AssemblyRegistrationFlags flags);
[System.Security.SecurityCritical]
public bool RegisterAssembly(System.Reflection.Assembly assembly, System.Runtime.InteropServices.AssemblyRegistrationFlags flags);
abstract member RegisterAssembly : System.Reflection.Assembly * System.Runtime.InteropServices.AssemblyRegistrationFlags -> bool
[<System.Security.SecurityCritical>]
abstract member RegisterAssembly : System.Reflection.Assembly * System.Runtime.InteropServices.AssemblyRegistrationFlags -> bool
Public Function RegisterAssembly (assembly As Assembly, flags As AssemblyRegistrationFlags) As Boolean

매개 변수

assembly
Assembly

등록할 어셈블리입니다.

flags
AssemblyRegistrationFlags

AssemblyRegistrationFlags 등록할 때 필요한 특수 설정을 나타내는 값입니다assembly.

반품

성공적으로 등록된 형식이 포함되어 있으면 />이고, 그렇지 않으면 어셈블리에 적합한 형식이 없는 경우입니다.

특성

예외

assemblynull입니다.

전체 이름은 assembly .입니다 null.

-또는-

로 표시된 ComRegisterFunctionAttribute 메서드가 아닙니다 static.

-또는-

지정된 계층 수준에서 표시된 ComRegisterFunctionAttribute 메서드가 두 개 이상 있습니다.

-또는-

표시된 ComRegisterFunctionAttribute 메서드의 서명이 잘못되었습니다.

설명

RegisterAssembly 지정된 어셈블리의 형식에 대한 적절한 레지스트리 항목을 추가합니다. 이 메서드는 어셈블리에 있는 등록 함수도 호출합니다.

어셈블리를 가져오는 데 사용합니다 Assembly.Load .

적용 대상