Freigeben über


IAppxManifestDocument2.GetFileOpenPickerExtension Method

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)

Syntax

'Declaration
Function GetFileOpenPickerExtension ( _
    <OutAttribute> ByRef executable As String, _
    <OutAttribute> ByRef entryPoint As String, _
    <OutAttribute> ByRef runtimeType As String, _
    <OutAttribute> ByRef startPage As String, _
    <OutAttribute> ByRef fileOpenPickerExtensionData As IAppxFileOpenPickerExtension _
) As Boolean
bool GetFileOpenPickerExtension(
    out string executable,
    out string entryPoint,
    out string runtimeType,
    out string startPage,
    out IAppxFileOpenPickerExtension fileOpenPickerExtensionData
)
bool GetFileOpenPickerExtension(
    [OutAttribute] String^% executable, 
    [OutAttribute] String^% entryPoint, 
    [OutAttribute] String^% runtimeType, 
    [OutAttribute] String^% startPage, 
    [OutAttribute] IAppxFileOpenPickerExtension^% fileOpenPickerExtensionData
)
abstract GetFileOpenPickerExtension : 
        executable:string byref * 
        entryPoint:string byref * 
        runtimeType:string byref * 
        startPage:string byref * 
        fileOpenPickerExtensionData:IAppxFileOpenPickerExtension byref -> bool
function GetFileOpenPickerExtension(
    executable : String, 
    entryPoint : String, 
    runtimeType : String, 
    startPage : String, 
    fileOpenPickerExtensionData : IAppxFileOpenPickerExtension
) : boolean

Parameters

  • executable
    Type: String%

    [out] The executable field of the app manifest.

  • entryPoint
    Type: String%

    [out] The entryPoint field of the app manifest.

  • runtimeType
    Type: String%

    [out] The runtimeType field of the app manifest.

  • startPage
    Type: String%

    [out] The startPage field of the app manifest.

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

IAppxManifestDocument2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace