IVsRegisterUIFactories.RegisterUIFactory(Guid, IVsUIFactory) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers the UI factory.
public:
int RegisterUIFactory(Guid % guid, Microsoft::VisualStudio::Shell::Interop::IVsUIFactory ^ pUIFactory);
public int RegisterUIFactory (ref Guid guid, Microsoft.VisualStudio.Shell.Interop.IVsUIFactory pUIFactory);
abstract member RegisterUIFactory : Guid * Microsoft.VisualStudio.Shell.Interop.IVsUIFactory -> int
Public Function RegisterUIFactory (ByRef guid As Guid, pUIFactory As IVsUIFactory) As Integer
Parameters
- guid
- Guid
[in] A globally unique identifier for the new factory.
- pUIFactory
- IVsUIFactory
[in] Pointer to the factory object.
Returns
Returns S_OK if the new factory was properly registered, otherwise an error code.
Remarks
This method is safe to access from any thread.