StringSyntaxAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定字串中使用的語法。
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
- 繼承
- 屬性
建構函式
| StringSyntaxAttribute(String) |
StringSyntaxAttribute使用所使用語法的識別碼,初始化 。 |
| StringSyntaxAttribute(String, Object[]) |
StringSyntaxAttribute使用所使用語法的識別碼,初始化 。 |
欄位
| CompositeFormat |
字串的語法識別碼,包含字串格式的複合格式。 |
| DateOnlyFormat |
包含日期格式規範之字串的語法識別碼。 |
| DateTimeFormat |
包含日期和時間格式規範之字串的語法識別碼。 |
| EnumFormat |
包含 Enum 格式規範之字串的語法標識碼。 |
| GuidFormat |
包含 Guid 格式規範之字串的語法標識碼。 |
| Json |
包含 JavaScript 物件表示法的字串語法識別碼, (JSON) 。 |
| NumericFormat |
包含數值格式規範之字串的語法識別碼。 |
| Regex |
包含正則表達式之字串的語法標識碼。 |
| TimeOnlyFormat |
包含時間格式規範之字串的語法標識碼。 |
| TimeSpanFormat |
包含 TimeSpan 格式規範之字串的語法標識碼。 |
| Uri |
包含 URI 之字串的語法識別碼。 |
| Xml |
包含 XML 之字串的語法識別碼。 |
屬性
| Arguments |
取得與所採用特定語法相關聯的選擇性自變數。 |
| Syntax |
取得使用的語法標識碼。 |
| TypeId |
在衍生類別中實作時,取得這個 Attribute 的唯一識別碼。 (繼承來源 Attribute) |
方法
| Equals(Object) |
傳回值,這個值指出此執行個體是否與指定的物件相等。 (繼承來源 Attribute) |
| GetHashCode() |
傳回這個執行個體的雜湊碼。 (繼承來源 Attribute) |
| GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
| IsDefaultAttribute() |
在衍生類別中覆寫時,表示這個執行個體的值是衍生類別的預設值。 (繼承來源 Attribute) |
| Match(Object) |
在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。 (繼承來源 Attribute) |
| MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
| ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |