IVsRegisterUIFactories.RegisterUIFactory Method
Registers the UI factory.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function RegisterUIFactory ( _
ByRef guid As Guid, _
pUIFactory As IVsUIFactory _
) As Integer
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, otherwise an error code.
.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.