Implementation of the
System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
method that is called when the object is serialized into a
stream.
Namespace: Microsoft.IdentityModel.Protocols
Assembly: Microsoft.IdentityModel (in
microsoft.identitymodel.dll)
Usage
Visual Basic |
Dim instance As RequestFaultException
Dim info As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(info, context)
|
Syntax
Visual Basic |
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter:=True)> _
Public Overrides Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
|
C# |
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true)]
public override void GetObjectData (
SerializationInfo info,
StreamingContext context
)
|
C++ |
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter=true)]
public:
virtual void GetObjectData (
SerializationInfo^ info,
StreamingContext context
) override
|
J# |
/** @attribute SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true) */
public void GetObjectData (
SerializationInfo info,
StreamingContext context
)
|
JScript |
public override function GetObjectData (
info : SerializationInfo,
context : StreamingContext
)
|
Parameters
- info
-
The serialization information to which the object data is added
when serialized.
- context
-
The destination for the serialized object.
Exceptions
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows
Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone,
Windows Server 2003, Windows XP Professional, Windows Vista,
Windows Server 2003 R2, Windows XP, Not tested on Windows XP
See Also