Share via


ModelingDocView.IsPrimaryView Property

Gets the document window and verifies whether this window is the primary document window.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Protected Overridable ReadOnly Property IsPrimaryView As Boolean
'Usage
Dim value As Boolean 

value = Me.IsPrimaryView
protected virtual bool IsPrimaryView { get; }
protected:
virtual property bool IsPrimaryView {
    bool get ();
}
protected function get IsPrimaryView () : boolean

Property Value

Type: System.Boolean
true if this window is the primary document window; otherwise, false.

Remarks

A message box opens if a document is open in the primary document window and a user tries to open the document in another window. The message box warns the user that the document in the primary document window will be closed before the document is reopened in the new document window.

.NET Framework Security

See Also

Reference

ModelingDocView Class

ModelingDocView Members

Microsoft.VisualStudio.Modeling.Shell Namespace