IVsAsyncShellOpenDocument.GetProvisionalViewingStatusForEditorAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the provisional viewing status for an editor and logical view combination.
public Microsoft.VisualStudio.Shell.Interop.IVsTask GetProvisionalViewingStatusForEditorAsync (Guid editorType, Guid logicalView);
abstract member GetProvisionalViewingStatusForEditorAsync : Guid * Guid -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function GetProvisionalViewingStatusForEditorAsync (editorType As Guid, logicalView As Guid) As IVsTask
Parameters
- editorType
- Guid
The editor to query.
- logicalView
- Guid
The hierarchy of the item.
Returns
A task representing the query operation. The result of the task is a member of the __VSPROVISIONALVIEWINGSTATUS enumeration that describes how the file can be opened in the preview tab. The default provisional viewing status is PVS_Disabled, but can be modified by the editor's "CommonPhysicalViewAttributes" registry value and the values under its "PhysicalViewAttributes" registry subkey.
Remarks
This method must be accessed on the main thread.