StringSyntaxAttribute Třída

Definice

Určuje syntaxi použitou v řetězci.

public ref class StringSyntaxAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
public sealed class StringSyntaxAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
type StringSyntaxAttribute = class
    inherit Attribute
Public NotInheritable Class StringSyntaxAttribute
Inherits Attribute
Dědičnost
StringSyntaxAttribute
Atributy

Konstruktory

Name Description
StringSyntaxAttribute(String, Object[])

Inicializuje StringSyntaxAttribute identifikátor použité syntaxe.

StringSyntaxAttribute(String)

Inicializuje StringSyntaxAttribute identifikátor použité syntaxe.

Pole

Name Description
CompositeFormat

Identifikátor syntaxe pro řetězce obsahující složené formáty pro formátování řetězců.

CSharp

Určuje syntaxi použitou v řetězci.

DateOnlyFormat

Identifikátor syntaxe pro řetězce obsahující specifikátory formátu data.

DateTimeFormat

Identifikátor syntaxe řetězců obsahující specifikátory formátu data a času.

EnumFormat

Identifikátor syntaxe pro řetězce obsahující Enum specifikátory formátu.

FSharp

Určuje syntaxi použitou v řetězci.

GuidFormat

Identifikátor syntaxe pro řetězce obsahující Guid specifikátory formátu.

Json

Identifikátor syntaxe pro řetězce obsahující javascriptový objektový zápis (JSON).

NumericFormat

Identifikátor syntaxe pro řetězce obsahující specifikátory číselného formátu.

Regex

Identifikátor syntaxe pro řetězce obsahující regulární výrazy.

TimeOnlyFormat

Identifikátor syntaxe pro řetězce obsahující specifikátory formátu času.

TimeSpanFormat

Identifikátor syntaxe pro řetězce obsahující TimeSpan specifikátory formátu.

Uri

Identifikátor syntaxe pro řetězce obsahující identifikátory URI.

VisualBasic

Určuje syntaxi použitou v řetězci.

Xml

Identifikátor syntaxe pro řetězce obsahující XML.

Vlastnosti

Name Description
Arguments

Získá volitelné argumenty přidružené ke konkrétní syntaxi použité.

Syntax

Získá identifikátor použité syntaxe.

TypeId

Při implementaci v odvozené třídě získá jedinečný identifikátor pro tento Attribute.

(Zděděno od Attribute)

Metody

Name Description
Equals(Object)

Vrátí hodnotu, která určuje, zda je tato instance rovna zadanému objektu.

(Zděděno od Attribute)
GetHashCode()

Vrátí kód hash pro tuto instanci.

(Zděděno od Attribute)
GetType()

Získá Type aktuální instance.

(Zděděno od Object)
IsDefaultAttribute()

Při přepsání v odvozené třídě určuje, zda hodnota této instance je výchozí hodnotou pro odvozenou třídu.

(Zděděno od Attribute)
Match(Object)

Při přepsání v odvozené třídě vrátí hodnotu, která určuje, zda se tato instance rovná zadanému objektu.

(Zděděno od Attribute)
MemberwiseClone()

Vytvoří mělkou kopii aktuálního Object.

(Zděděno od Object)
ToString()

Vrátí řetězec, který představuje aktuální objekt.

(Zděděno od Object)

Platí pro