SerializationInfo.AssemblyName SerializationInfo.AssemblyName SerializationInfo.AssemblyName SerializationInfo.AssemblyName Property


取得或設定僅在序列化期間序列化之型別的組件名稱。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.


AssemblyName所傳回的值相同FullName屬於包含類型的組件的屬性。The 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.