DocumentType Struct

Definition

A document type identifies document content as belonging to a specific category, such as of some programming language or more generally just as code or as text. Visual Studio enables various features based on current document type, while extensions use document type to define their activation criteria. An extension can define a new document type and map it to file extensions using DocumentTypeConfiguration.

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.Extensibility.Editor.DocumentType+Converter))]
public readonly struct DocumentType : IEquatable<Microsoft.VisualStudio.Extensibility.Editor.DocumentType>
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.VisualStudio.Extensibility.Editor.DocumentType+Converter))>]
type DocumentType = struct
Public Structure DocumentType
Implements IEquatable(Of DocumentType)
Inheritance
DocumentType
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Methods

Custom(String)

Initializes a DocumentType value.

Equals(DocumentType)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the string value of DocumentType.

Operators

Equality(DocumentType, DocumentType)

Compares two DocumentType values returning whether they are equal.

Implicit(DocumentType to String)

Implicitly converts a DocumentType to a string.

Implicit(String to DocumentType)

Implicitly converts a string to a DocumentType.

Inequality(DocumentType, DocumentType)

Compares two DocumentType values returning whether they are different.

Applies to