Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Called when a managed add-in is loaded.
HRESULT Load([in] BSTR bstrManifestURL,
[in] IDispatch *pdispApplication);
Parameters
Parameter |
Description |
|---|---|
bstrManifestURL |
The full path of the manifest for the add-in. |
pdispApplication |
A pointer to an IDispatch that represents the host application that is loading the add-in. |
Return Value
An HRESULT value that indicates whether the method completed successfully.
Remarks
A manifest is a file (typically, an XML file) that provides information that is used to help load the add-in. For example, a manifest can specify the location of the add-in assembly and the entry point class to instantiate when the add-in is loaded.
The bstrManifestURL parameter contains the value of the Manifest entry under the HKEY_CURRENT_USER\Software\Microsoft\Office\<application name>\Addins\<add-in ID> registry key for the add-in. For more information, see IManagedAddin Interface.
Implement the IManagedAddin::Load method to perform tasks such as configuring the application domain and security policy for the add-in that is being loaded.