GetObjectData méthode
Remplit un objet SerializationInfo avec des informations relatives à l'exception.
Espace de noms : Microsoft.Synchronization.Data
Assembly : Microsoft.Synchronization.Data (dans Microsoft.Synchronization.Data.dll)
Syntaxe
'Déclaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overrides Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Utilisation
Dim instance As DbSyncException
Dim info As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(info, context)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(
SerializationInfo info,
StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter = true)]
public:
virtual void GetObjectData(
SerializationInfo^ info,
StreamingContext context
) override
[<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)>]
abstract GetObjectData :
info:SerializationInfo *
context:StreamingContext -> unit
[<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)>]
override GetObjectData :
info:SerializationInfo *
context:StreamingContext -> unit
public override function GetObjectData(
info : SerializationInfo,
context : StreamingContext
)
Paramètres
- info
Type : System.Runtime.Serialization. . :: . .SerializationInfo
Objet SerializationInfo à remplir avec des données.
- context
Type : System.Runtime.Serialization. . :: . .StreamingContext
Destination (consultez StreamingContext) de cette sérialisation.
Implémente
ISerializable. . :: . .GetObjectData(SerializationInfo, StreamingContext)
_Exception. . :: . .GetObjectData(SerializationInfo, StreamingContext)