Udostępnij za pośrednictwem


IVsRegisterUIFactories.RegisterUIFactory(Guid, IVsUIFactory) Method

Definition

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.

Applies to