NewDocumentStateScope NewDocumentStateScope NewDocumentStateScope NewDocumentStateScope NewDocumentStateScope Class

Definition

Facilitates deterministic restoration of an IVsNewDocumentStateContext.

public ref class NewDocumentStateScope : Microsoft::VisualStudio::PlatformUI::DisposableObject
[Windows::Foundation::Metadata::WebHostHidden]
class NewDocumentStateScope : Microsoft::VisualStudio::PlatformUI::DisposableObject
public class NewDocumentStateScope : Microsoft.VisualStudio.PlatformUI.DisposableObject
type NewDocumentStateScope = class
    inherit DisposableObject
Public Class NewDocumentStateScope
Inherits DisposableObject
Inheritance
NewDocumentStateScopeNewDocumentStateScopeNewDocumentStateScopeNewDocumentStateScopeNewDocumentStateScope

Remarks

To open a document in the Visual Studio preview tab, you can use an instance of this class in a using statement.

Constructors

NewDocumentStateScope(__VSNEWDOCUMENTSTATE, Guid) NewDocumentStateScope(__VSNEWDOCUMENTSTATE, Guid) NewDocumentStateScope(__VSNEWDOCUMENTSTATE, Guid) NewDocumentStateScope(__VSNEWDOCUMENTSTATE, Guid) NewDocumentStateScope(__VSNEWDOCUMENTSTATE, Guid)

Initializes a new instance of the NewDocumentStateScope class.

NewDocumentStateScope(__VSNEWDOCUMENTSTATE2, Guid) NewDocumentStateScope(__VSNEWDOCUMENTSTATE2, Guid) NewDocumentStateScope(__VSNEWDOCUMENTSTATE2, Guid) NewDocumentStateScope(__VSNEWDOCUMENTSTATE2, Guid) NewDocumentStateScope(__VSNEWDOCUMENTSTATE2, Guid)

Initializes a new instance of the NewDocumentStateScope class.

Methods

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from DisposableObject)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Standard virtual overload for IDisposable pattern.

(Inherited from DisposableObject)
DisposeManagedResources() DisposeManagedResources() DisposeManagedResources() DisposeManagedResources() DisposeManagedResources()

Allows derived classes to provide custom dispose handling for managed resources.

(Inherited from DisposableObject)
DisposeNativeResources() DisposeNativeResources() DisposeNativeResources() DisposeNativeResources() DisposeNativeResources()

Disposes of the native resources.

ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed() ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed.

(Inherited from DisposableObject)

Events

Disposing Disposing Disposing Disposing Disposing

Raised when the event is being disposed, that is, while it is still accessible.

(Inherited from DisposableObject)

Properties

IsDisposed IsDisposed IsDisposed IsDisposed IsDisposed

Returns whether the object has been disposed once, which protects against double disposal.

(Inherited from DisposableObject)

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to