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
pPreviewer
Type: Microsoft.VisualStudio.Shell.Interop.IVsDocumentPreviewer[in] The document previewer to set as the default previewer.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.