Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Adds a component to a component set.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function AddComponent ( _
ByRef guidLib As Guid, _
pcsdComponent As VSCOMPONENTSELECTORDATA(), _
<OutAttribute> ByRef ppRealLibNavInfo As IVsNavInfo, _
<OutAttribute> pcsdAddedComponent As VSCOMPONENTSELECTORDATA() _
) As Integer
'Usage
Dim instance As IVsSimpleBrowseComponentSet
Dim guidLib As Guid
Dim pcsdComponent As VSCOMPONENTSELECTORDATA()
Dim ppRealLibNavInfo As IVsNavInfo
Dim pcsdAddedComponent As VSCOMPONENTSELECTORDATA()
Dim returnValue As Integer
returnValue = instance.AddComponent(guidLib, _
pcsdComponent, ppRealLibNavInfo, _
pcsdAddedComponent)
int AddComponent(
ref Guid guidLib,
VSCOMPONENTSELECTORDATA[] pcsdComponent,
out IVsNavInfo ppRealLibNavInfo,
VSCOMPONENTSELECTORDATA[] pcsdAddedComponent
)
int AddComponent(
[InAttribute] Guid% guidLib,
[InAttribute] array<VSCOMPONENTSELECTORDATA>^ pcsdComponent,
[OutAttribute] IVsNavInfo^% ppRealLibNavInfo,
[OutAttribute] array<VSCOMPONENTSELECTORDATA>^ pcsdAddedComponent
)
abstract AddComponent :
guidLib:Guid byref *
pcsdComponent:VSCOMPONENTSELECTORDATA[] *
ppRealLibNavInfo:IVsNavInfo byref *
pcsdAddedComponent:VSCOMPONENTSELECTORDATA[] byref -> int
function AddComponent(
guidLib : Guid,
pcsdComponent : VSCOMPONENTSELECTORDATA[],
ppRealLibNavInfo : IVsNavInfo,
pcsdAddedComponent : VSCOMPONENTSELECTORDATA[]
) : int
Parameters
- guidLib
Type: System.Guid%
[in]The Guid that identifies the registered library.
- pcsdComponent
Type: array<Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[]
[in] A VSCOMPONENTSELECTORDATA value specifying the attributes of component to find.
- ppRealLibNavInfo
Type: Microsoft.VisualStudio.Shell.Interop.IVsNavInfo%
[out] A IVsNavInfo interface of the found components.
- pcsdAddedComponent
Type: array<Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[]
[in] A VSCOMPONENTSELECTORDATA value specifying the attributes of the added component.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
HRESULT AddComponent(
[in] REFGUID guidLib,
[in] VSCOMPONENTSELECTORDATA * pcsdComponent,
[out] IVsNavInfo ** ppRealLibNavInfo,
[out] VSCOMPONENTSELECTORDATA * pcsdAddedComponent
);
.NET Framework Security
- 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.
See Also
Reference
IVsSimpleBrowseComponentSet Interface