Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the NewDocumentStateScope class.
Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
    state As __VSNEWDOCUMENTSTATE2, _
    reason As Guid _
)
public NewDocumentStateScope(
    __VSNEWDOCUMENTSTATE2 state,
    Guid reason
)
public:
NewDocumentStateScope(
    __VSNEWDOCUMENTSTATE2 state, 
    Guid reason
)
new : 
        state:__VSNEWDOCUMENTSTATE2 * 
        reason:Guid -> NewDocumentStateScope
public function NewDocumentStateScope(
    state : __VSNEWDOCUMENTSTATE2, 
    reason : Guid
)
Parameters
- state 
 Type: Microsoft.VisualStudio.Shell.Interop.__VSNEWDOCUMENTSTATE2- State used for the next document to be opened. 
- reason 
 Type: Guid- Reason the state is being set (typically this is a tool window or language service GUID). 
.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.