SerializationInfo.AssemblyName 屬性


取得或設定僅在序列化期間序列化之型別的組件名稱。Gets or sets the assembly name of the type to serialize during serialization only.

 property System::String ^ AssemblyName { System::String ^ get(); void set(System::String ^ value); };
public string AssemblyName { get; set; }
member this.AssemblyName : string with get, set
Public Property AssemblyName As String


要序列之型別的組件完整名稱。The full name of the assembly of the type to serialize.


要設定的屬性值為 nullThe value the property is set to is null.


與包含類型之元件的FullName屬性所傳回的值相同。 AssemblyNameThe AssemblyName is the same as the value returned by FullName property of the assembly of the containing type. 這是在序列化這個物件的類型資訊時, 格式器所使用的元件名稱。This is the assembly name that the formatter uses when serializing type information for this object.

元件名稱包含元件的名稱、版本、文化特性, 以及與物件有關的一些安全性資訊。The assembly name contains the name of the assembly, version, culture, and some security information about the object.

變更序列化類型的使用者 (例如, 為了傳送特定類型的 proxy) 將會設定這個屬性的值。Users who are changing the type being serialized (for example, to send a proxy for a particular type) will set the value of this property.


請不要在還原序列化期間使用這個屬性, 因為這個屬性的值是未定義的。Do not use this property during deserialization because the value of this property is undefined.