IAppxManifestDocument::GetShareExtension Method (String^, String^, String^, String^, IAppxShareExtension^)

 

Gets the Share extension.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

bool GetShareExtension(
	[OutAttribute] String^% executable,
	[OutAttribute] String^% entryPoint,
	[OutAttribute] String^% runtimeType,
	[OutAttribute] String^% startPage,
	[OutAttribute] IAppxShareExtension^% shareExtensionData
)

Parameters

executable
Type: System::String^

[out] The executable field of the App manifest.

entryPoint
Type: System::String^

[out] The entryPoint field of the app manifest.

runtimeType
Type: System::String^

[out] ] The runtimeType field of the app manifest.

startPage
Type: System::String^

[out] The startPage field of the app manifest.

shareExtensionData
Type: Microsoft.VisualStudio.Shell.Interop::IAppxShareExtension^

[out] An IAppxShareExtension object that allows mutation of the manifest's File Open Picker extension.

Return Value

Type: System::Boolean

true if there is a Share extension associated with the manifest.

Because at most one Share extension is allowed per manifest, there is no ambiguity as to which data is returned by this method.

This method returns an IAppxShareExtension object that allows mutation of the manifest's Share extension. This Share extension data object goes stale whenever there is no Share extension associated with the manifest. So, when this method is called, the resulting shareExtensionData is useful only if the value returned by this method is true. If RemoveShareExtension is called, shareExtensionData becomes stale, and must be replenished with another call to this method.

Return to top
Show: