Aracılığıyla paylaş


RealProxy.GetObjectData(SerializationInfo, StreamingContext) Yöntem

Tanım

Geçerli örneği RealProxy tarafından temsil edilen nesnenin saydam proxy'sini belirtilen SerializationInfoöğesine ekler.

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parametreler

info
SerializationInfo

Saydam SerializationInfo proxy'nin seri hale getirildiği.

context
StreamingContext

Serileştirmenin kaynağı ve hedefi.

Öznitelikler

Özel durumlar

info veya context parametresidirnull.

Hemen çağıranın SerializationFormatter izni yok.

Örnekler

[System::Security::Permissions::SecurityPermissionAttribute(
System::Security::Permissions::SecurityAction::LinkDemand,
Flags=System::Security::Permissions::SecurityPermissionFlag::Infrastructure)]
virtual void GetObjectData( SerializationInfo^ info, StreamingContext context ) override
{
   // Add your custom data if any here.
   RealProxy::GetObjectData( info, context );
}
public override void GetObjectData( SerializationInfo info,
                                    StreamingContext context)
{
   // Add your custom data if any here.
   base.GetObjectData(info, context);
}
Public Overrides Sub GetObjectData(info As SerializationInfo, context As StreamingContext)
   ' Add your custom data if any here.
   MyBase.GetObjectData(info, context)
End Sub

Şunlara uygulanır