IAppxManifestDocument2::GetFileOpenPickerExtension Method (String^, String^, String^, String^, IAppxFileOpenPickerExtension^)

 

Gets the File Open Picker extension.

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

bool GetFileOpenPickerExtension(
	[OutAttribute] String^% executable,
	[OutAttribute] String^% entryPoint,
	[OutAttribute] String^% runtimeType,
	[OutAttribute] String^% startPage,
	[OutAttribute] IAppxFileOpenPickerExtension^% fileOpenPickerExtensionData
)

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.

fileOpenPickerExtensionData
Type: Microsoft.VisualStudio.Shell.Interop::IAppxFileOpenPickerExtension^

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

Return Value

Type: System::Boolean

true if there is a File Open Picker extension associated with the manifest.

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

File Open Picker extensions do not have DataFormat elements.

The File Open Picker extension data object (returned in fileOpenPickerExtensionData) goes stale whenever there is no File Open Picker extension associated with the manifest. So, when this method is called, the resulting fileOpenPickerExtensionData is useful only if the value returned by this method is true. If RemoveShareExtension is called, fileOpenPickerExtensionData becomes stale, and must be replenished with another call to this method.

Return to top
Show: