调用激活时,新的对象。
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
Private Sub OnActivationChange ( _
pic As IOleComponent, _
fSameComponent As Integer, _
pcrinfo As OLECRINFO(), _
fHostIsActivating As Integer, _
pchostinfo As OLECHOSTINFO(), _
dwReserved As UInteger _
) Implements IOleComponent2Private.OnActivationChange
void IOleComponent2Private.OnActivationChange(
IOleComponent pic,
int fSameComponent,
OLECRINFO[] pcrinfo,
int fHostIsActivating,
OLECHOSTINFO[] pchostinfo,
uint dwReserved
)
参数
- pic
类型:Microsoft.VisualStudio.OLE.Interop.IOleComponent
IOleComponent 或 nullnull 引用(在 Visual Basic 中为 Nothing)。
- fSameComponent
类型:System.Int32
true ,如果 pic 为元素和此方法与被调用方,否则 false。
- pcrinfo
类型:array<Microsoft.VisualStudio.OLE.Interop.OLECRINFO[]
数组 OLECRINFO framework 中,表示 pic的注册表信息。
- fHostIsActivating
类型:System.Int32
true ,如果激活宿主,否则 false。
- pchostinfo
类型:array<Microsoft.VisualStudio.OLE.Interop.OLECHOSTINFO[]
数组 OLECHOSTINFO 结构,表示宿主信息。
- dwReserved
类型:System.UInt32
保留。
实现
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。