Partager via


IVsUIShellOpenDocument3.SetDefaultPreviewer Method

Allows setting a previewer as default, either exclusive or in addition to the existing previewers. The previewer must be one of the available previewers.

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

Syntax

'Declaration
Sub SetDefaultPreviewer ( _
    pPreviewer As IVsDocumentPreviewer, _
    Resolution As UInteger, _
    fExclusive As Boolean _
)
void SetDefaultPreviewer(
    IVsDocumentPreviewer pPreviewer,
    uint Resolution,
    bool fExclusive
)
void SetDefaultPreviewer(
    [InAttribute] IVsDocumentPreviewer^ pPreviewer, 
    [InAttribute] unsigned int Resolution, 
    [InAttribute] bool fExclusive
)
abstract SetDefaultPreviewer : 
        pPreviewer:IVsDocumentPreviewer * 
        Resolution:uint32 * 
        fExclusive:bool -> unit
function SetDefaultPreviewer(
    pPreviewer : IVsDocumentPreviewer, 
    Resolution : uint, 
    fExclusive : boolean
)

Parameters

  • Resolution
    Type: UInt32

    [in] The resolution of the document previewer.

  • fExclusive
    Type: Boolean

    [in] Indicates whether the document previewer is exclusive or in addition to the existing previewers. If true, the document previewer is exclusive.

.NET Framework Security

See Also

Reference

IVsUIShellOpenDocument3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace