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 对象)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值