KeyTypeAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
允許成員被標記為 KeyDataViewType.
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class KeyTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type KeyTypeAttribute = class
inherit Attribute
Public NotInheritable Class KeyTypeAttribute
Inherits Attribute
- 繼承
-
KeyTypeAttribute
- 屬性
備註
只能適用於以下類型的成員: Byte, UInt16, UInt32, UInt64
建構函式
| 名稱 | Description |
|---|---|
| KeyTypeAttribute() |
標記成員為 KeyDataViewType。 |
| KeyTypeAttribute(UInt64) |
標記成員為 KeyDataViewType 並指定 KeyDataViewType 基數。
若屬性與整數型別一起使用, |