C# Класс Serilog.Parsing.TextToken

A message template token representing literal text.
Наследование: MessageTemplateToken
Показать файл Открыть проект

Открытые методы

Метод Описание
Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to the current T:System.Object.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

Render ( LogEventPropertyValue>.IReadOnlyDictionary properties, TextWriter output, IFormatProvider formatProvider = null ) : void

Render the token to the output.

TextToken ( string text, int startIndex = -1 ) : System

Construct a TextToken.

ToString ( ) : string

Returns a string that represents the current object.

Описание методов

Equals() публичный Метод

Determines whether the specified T:System.Object is equal to the current T:System.Object.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
Результат bool

GetHashCode() публичный Метод

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Результат int

Render() публичный Метод

Render the token to the output.
public Render ( LogEventPropertyValue>.IReadOnlyDictionary properties, TextWriter output, IFormatProvider formatProvider = null ) : void
properties LogEventPropertyValue>.IReadOnlyDictionary Properties that may be represented by the token.
output System.IO.TextWriter Output for the rendered string.
formatProvider IFormatProvider Supplies culture-specific formatting information, or null.
Результат void

TextToken() публичный Метод

Construct a TextToken.
public TextToken ( string text, int startIndex = -1 ) : System
text string The text of the token.
startIndex int The token's start index in the template.
Результат System

ToString() публичный Метод

Returns a string that represents the current object.
public ToString ( ) : string
Результат string