Delen 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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected Overridable ReadOnly Property IsPrimaryView As Boolean
protected virtual bool IsPrimaryView { get; }
protected:
virtual property bool IsPrimaryView {
    bool get ();
}
abstract IsPrimaryView : bool with get 
override IsPrimaryView : bool with get
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

Microsoft.VisualStudio.Modeling.Shell Namespace