Share via


KnownBaseTypeAttribute 類別

定義

表示此類型和所有子類型都會被視為 [Serializable]。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface)]
public sealed class KnownBaseTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface)>]
type KnownBaseTypeAttribute = class
    inherit Attribute
Public NotInheritable Class KnownBaseTypeAttribute
Inherits Attribute
繼承
KnownBaseTypeAttribute
屬性

建構函式

KnownBaseTypeAttribute()

表示此類型和所有子類型都會被視為 [Serializable]。

適用於