Namespace: Microsoft.VisualStudio.OLE.Interop
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
Syntax
'宣言
Function FRegisterComponent ( _
piComponent As IOleComponent, _
pcrinfo As OLECRINFO(), _
<OutAttribute> ByRef pdwComponentID As UInteger _
) As Integer
'使用
Dim instance As IOleComponentManager
Dim piComponent As IOleComponent
Dim pcrinfo As OLECRINFO()
Dim pdwComponentID As UInteger
Dim returnValue As Integer
returnValue = instance.FRegisterComponent(piComponent, _
pcrinfo, pdwComponentID)
int FRegisterComponent(
IOleComponent piComponent,
OLECRINFO[] pcrinfo,
out uint pdwComponentID
)
int FRegisterComponent(
[InAttribute] IOleComponent^ piComponent,
[InAttribute] array<OLECRINFO>^ pcrinfo,
[OutAttribute] unsigned int% pdwComponentID
)
function FRegisterComponent(
piComponent : IOleComponent,
pcrinfo : OLECRINFO[],
pdwComponentID : uint
) : int
Parameters
- piComponent
Type: Microsoft.VisualStudio.OLE.Interop.IOleComponent
- pcrinfo
Type: []
- pdwComponentID
Type: System.UInt32%
Return Value
Type: System.Int32
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.