次の方法で共有


EditorOptionKey<T> Structure

Represents a type-safe key for editor options.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'宣言
Public Structure EditorOptionKey(Of T)
public struct EditorOptionKey<T>
generic<typename T>
public value class EditorOptionKey
[<Sealed>]
type EditorOptionKey<'T> =  struct end
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the option value.

The EditorOptionKey<T> type exposes the following members.

Constructors

  Name Description
Public method EditorOptionKey<T> Initializes a new instance of EditorOptionKey<T>.

Top

Properties

  Name Description
Public property Name Gets the name of this key.

Top

Methods

  Name Description
Public method Equals Determines whether two EditorOptionKey<T> objects are the same. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets the hash code for this object. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Converts this object to a string. (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether two instances of this type are the same.
Public operatorStatic member Inequality Determines whether two instances of this type are different.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace