IAppxManifestDocument::GetFileOpenPickerExtension Method (String^, String^, String^, String^, IAppxFileOpenPickerExtension^)
Gets the File Open Picker extension.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.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::Booleantrue 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.