Share via


DocumentSnapshot Constructors

Definition

Overloads

DocumentSnapshot(Uri)

Initializes a new instance of the DocumentSnapshot class.

DocumentSnapshot(Uri, Boolean, Boolean)

Initializes a new instance of the DocumentSnapshot class.

DocumentSnapshot(Uri, Boolean, Boolean, Boolean)

Initializes a new instance of the DocumentSnapshot class.

DocumentSnapshot(Uri)

Initializes a new instance of the DocumentSnapshot class.

public DocumentSnapshot (Uri moniker);
new Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot : Uri -> Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot
Public Sub New (moniker As Uri)

Parameters

moniker
Uri

The document moniker. It must be an absolute Uri using the "file" scheme.

Applies to

DocumentSnapshot(Uri, Boolean, Boolean)

Initializes a new instance of the DocumentSnapshot class.

public DocumentSnapshot (Uri moniker, bool isDirty, bool isReadOnly);
new Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot : Uri * bool * bool -> Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot
Public Sub New (moniker As Uri, isDirty As Boolean, isReadOnly As Boolean)

Parameters

moniker
Uri

The document moniker. It must be an absolute Uri using the "file" scheme.

isDirty
Boolean

Indicates whether the document has unsaved changes.

isReadOnly
Boolean

Indicates whether the document is in a read-only state.

Applies to

DocumentSnapshot(Uri, Boolean, Boolean, Boolean)

Initializes a new instance of the DocumentSnapshot class.

[Newtonsoft.Json.JsonConstructor]
public DocumentSnapshot (Uri moniker, bool isDirty, bool isReadOnly, bool isInitialized);
[<Newtonsoft.Json.JsonConstructor>]
new Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot : Uri * bool * bool * bool -> Microsoft.VisualStudio.RpcContracts.Documents.DocumentSnapshot
Public Sub New (moniker As Uri, isDirty As Boolean, isReadOnly As Boolean, isInitialized As Boolean)

Parameters

moniker
Uri

The document moniker. It must be an absolute Uri using the "file" scheme.

isDirty
Boolean

Indicates whether the document has unsaved changes.

isReadOnly
Boolean

Indicates whether the document is in a read-only state.

isInitialized
Boolean

Indicates whether the document finished initialization.

Attributes
Newtonsoft.Json.JsonConstructorAttribute

Applies to