Aracılığıyla paylaş


IOleInPlaceComponent.UseComponentUIManager Yöntem (UInt32, UInt32, IOleComponentUIManager, IOleInPlaceComponentSite)

 

Rolü işaretçileri sağlama ortamında, bir yerinde nesne bildirir IOleComponentUIManager ve IOleInPlaceComponentSite arabirimleri.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

int UseComponentUIManager(
    uint dwCompRole,
    out uint pgrfCompFlags,
    IOleComponentUIManager pCompUIMgr,
    IOleInPlaceComponentSite pIPCompSite
)
int UseComponentUIManager(
    unsigned int dwCompRole,
    [OutAttribute] unsigned int% pgrfCompFlags,
    IOleComponentUIManager^ pCompUIMgr,
    IOleInPlaceComponentSite^ pIPCompSite
)
abstract UseComponentUIManager : 
        dwCompRole:uint32 *
        pgrfCompFlags:uint32 byref *
        pCompUIMgr:IOleComponentUIManager *
        pIPCompSite:IOleInPlaceComponentSite -> int
Function UseComponentUIManager (
    dwCompRole As UInteger,
    <OutAttribute> ByRef pgrfCompFlags As UInteger,
    pCompUIMgr As IOleComponentUIManager,
    pIPCompSite As IOleInPlaceComponentSite
) As Integer

Parametreler

  • pgrfCompFlags
    Type: System.UInt32

    [in] Ortam denetimi etkileşim yerinde nesnesi tarafından belirtilen bayrak. Bir listesi için pgrfCompFlags değerler, bakın OLECOMPFLAG.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, döndürür S_OK. Başarısız olursa, bir hata kodu döndürür.

Notlar

COM imza

Oleipc.idl:

HRESULT IOleInPlaceComponent::UseComponentUIManager(
   [in] DWORD dwCompRole,
   [out] DWORD *pgrfCompFlags,
   [in] IOleComponentUIManager *pCompUIMgr,
   [in] IOleInPlaceComponentSite *pIPCompSite
);

Ortam yerinde nesnenin çağırır UseComponentUIManager nesne yerinde etkin hale gelmeden önce yöntemi. Yerinde VSPackage nesneleri etkinleştirmek için yöntemler gibi yanıt tarafından DoVerb veya UIActivate.UseComponentUIManager yerinde nesne tarafından belirtilen rolünü yönlendirir dwCompRole parametresi.

Yerinde nesneleri çağrı gerekmez UseComponentUIManager olduğunda bunlar yeniden etkinleştirme devre dışı sonra. Bunlar yalnızca bir kez çağırmanız gerekir.

VSPackages genellikle uygulama UseComponentUIManager geçirilen işaretçisi kullanmak için pCompUIMgr çağırmak için parametre QueryInterface ve ortamın bir işaretçi almak IOleInPlaceComponentUIManager arabirimi.

Ayrıca bkz.

IOleInPlaceComponent Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön