Udostępnij za pośrednictwem


TextTemplatingSession Klasa

Definicja

Trywialna implementacja interfejsu sesji przekształcania tekstu

public ref class TextTemplatingSession sealed : System::Collections::Generic::Dictionary<System::String ^, System::Object ^>, IEquatable<Guid>, IEquatable<Microsoft::VisualStudio::TextTemplating::ITextTemplatingSession ^>, Microsoft::VisualStudio::TextTemplating::ITextTemplatingSession, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Runtime::Serialization::ISerializable
[System.Serializable]
public sealed class TextTemplatingSession : System.Collections.Generic.Dictionary<string,object>, IEquatable<Guid>, IEquatable<Microsoft.VisualStudio.TextTemplating.ITextTemplatingSession>, Microsoft.VisualStudio.TextTemplating.ITextTemplatingSession, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type TextTemplatingSession = class
    inherit Dictionary<string, obj>
    interface ITextTemplatingSession
    interface IEquatable<ITextTemplatingSession>
    interface IEquatable<Guid>
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
    interface ISerializable
Public NotInheritable Class TextTemplatingSession
Inherits Dictionary(Of String, Object)
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IEquatable(Of Guid), IEquatable(Of ITextTemplatingSession), ISerializable, ITextTemplatingSession
Dziedziczenie
TextTemplatingSession
Atrybuty
Implementuje

Konstruktory

TextTemplatingSession()

Konstruktor podstawowy, który tworzy unikatowy identyfikator.

TextTemplatingSession(Guid)

Konstruktor umożliwiający używanie określonego identyfikatora

Właściwości

Id

Tożsamość sesji

Metody

Equals(Guid)

Porównuje Id to TextTemplatingSession z innym elementem ITextTemplatingSession

Equals(ITextTemplatingSession)

Porównuje to TextTemplatingSession z innym ITextTemplatingSession

Equals(Object)

Porównuje to TextTemplatingSession z innym obiektem

GetHashCode()

Użyj skrótu identyfikatora, ponieważ jest to kod skrótu.

Jawne implementacje interfejsu

ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Przestarzałe.

Serializowanie obiektu

Metody rozszerzania

AddRange<TKey,TValue>(IDictionary<TKey,TValue>, IDictionary<TKey,TValue>, Boolean)

Dodawanie jednej zawartości słownika do innego słownika

GetOrDefault<TK,TV>(IDictionary<TK,TV>, TK)

Pobiera wartość według danego klucza.

EmptyIfNull<T>(IEnumerable<T>)

Zwróć tę wyliczenie, jeśli nie ma wartości null. W przypadku, gdy ma wartość null, zwraca puste wyliczenie.

Dotyczy