RegisterForComInterop 属性
指示应用程序将公开一个 COM 对象(可调用 COM 的包装),它允许 COM 对象与您的托管应用程序交互。
[Visual Basic .NET]
- Public Property RegisterForComInterop() As Boolean
[Visual Basic 6]
- Property Get RegisterForComInterop () As BooleanProperty Let RegisterForComInterop ( _
- ByVal NewValue As Boolean _
- )
[C++]
- HRESULT __stdcall get_ RegisterForComInterop (
- /* [out, retval] */ VARIANT_BOOL* retVal
- );
- HRESULT __stdcall put_ RegisterForComInterop (
- /* [in] */ VARIANT_BOOL NewValue
- );
[C#]
- bool RegisterForComInterop {get; set;}
[JScript .NET]
- public function get RegisterForComInterop () : Booleanpublic function set RegisterForComInterop (
- NewValue : Boolean
- )
参数
-
NewValue
- 如果为 true,应用程序将公开一个 COM 对象。
备注
项目的 OutputType 属性必须是类库 (prjOutputType.PrjOutputTypeLibrary),该属性才有意义。
请参见
Properties 属性(常规扩展性) |Properties 属性(Visual Basic 和 Visual C# Configuration 对象)