RegisterForComInterop 属性

 
RegisterForComInterop 属性

指示应用程序将公开一个 COM 对象(可调用 COM 的包装),它允许 COM 对象与您的托管应用程序交互。

[Visual Basic .NET]

     
     
     
     
  1. Public Property RegisterForComInterop() As Boolean
[Visual Basic 6]

     
     
     
     
  1. Property Get RegisterForComInterop () As BooleanProperty Let RegisterForComInterop ( _
  2.  ByVal NewValue As Boolean _
[C++]

     
     
     
     
  1. HRESULT __stdcall get_ RegisterForComInterop (
  2.  /* [out, retval] */ VARIANT_BOOL* retVal
  3. );
  4. HRESULT __stdcall put_ RegisterForComInterop (
  5.  /* [in] */ VARIANT_BOOL NewValue
  6. );
[C#]

     
     
     
     
  1. bool RegisterForComInterop {get; set;}
[JScript .NET]

     
     
     
     
  1. public function get RegisterForComInterop () : Booleanpublic function set RegisterForComInterop (
  2.  NewValue : Boolean
  3. )

参数

NewValue
如果为 true,应用程序将公开一个 COM 对象。

备注

项目的 OutputType 属性必须是类库 (prjOutputType.PrjOutputTypeLibrary),该属性才有意义。

请参见

Properties 属性(常规扩展性) |Properties 属性(Visual Basic 和 Visual C# Configuration 对象)

你可能感兴趣的:(c,properties,C#,basic,扩展)