AspNetManagementUtility.RegisterAsnetMmcAssembly(Int32, String, String, IntPtr) 方法
定义
向 Microsoft 管理控制台 (MMC) 注册 ASP.NET 管理单元。Registers the ASP.NET snap-in with the Microsoft Management Console (MMC).
此 API 支持产品基础结构,不能在代码中直接使用。
public:
virtual void RegisterAsnetMmcAssembly(int doReg, System::String ^ typeName, System::String ^ binaryDirectory, [Runtime::InteropServices::Out] IntPtr % exception);
public void RegisterAsnetMmcAssembly (int doReg, string typeName, string binaryDirectory, out IntPtr exception);
abstract member RegisterAsnetMmcAssembly : int * string * string * nativeint -> unit
override this.RegisterAsnetMmcAssembly : int * string * string * nativeint -> unit
Public Sub RegisterAsnetMmcAssembly (doReg As Integer, typeName As String, binaryDirectory As String, ByRef exception As IntPtr)
参数
- doReg
- Int32
1 表示注册类型,0 表示注销类型。A 1 to register or a 0 to unregister the type.
- typeName
- String
要注册的类型的名称The name of the type to register
- binaryDirectory
- String
包含程序集的目录。The directory containing the assembly.
- exception
- IntPtr
指向注册期间引发的任何异常的指针。A pointer to any exception thrown during registration.
实现
注解
有关通过 AspNetManagementUtility 类和 Microsoft 管理控制台 (mmc) 编程的详细信息,请参阅 Mmc 程序员指南。For more information about programming with the AspNetManagementUtility class and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.