IVsRegisterUIFactories.RegisterUIFactory Method
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaración
Function RegisterUIFactory ( _
ByRef guid As Guid, _
pUIFactory As IVsUIFactory _
) As Integer
'Uso
Dim instance As IVsRegisterUIFactories
Dim guid As Guid
Dim pUIFactory As IVsUIFactory
Dim returnValue As Integer
returnValue = instance.RegisterUIFactory(guid, _
pUIFactory)
int RegisterUIFactory(
ref Guid guid,
IVsUIFactory pUIFactory
)
int RegisterUIFactory(
[InAttribute] Guid% guid,
[InAttribute] IVsUIFactory^ pUIFactory
)
abstract RegisterUIFactory :
guid:Guid byref *
pUIFactory:IVsUIFactory -> int
function RegisterUIFactory(
guid : Guid,
pUIFactory : IVsUIFactory
) : int
Parameters
- guid
Type: System.Guid%
[in] A globally unique identifier for the new factory.
- pUIFactory
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIFactory
[in] Pointer to the factory object.
Return Value
Type: System.Int32
Returns S_OK if the new factory was properly registered.
.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
IVsRegisterUIFactories Interface