Namespace: Microsoft.Clm.Shared
Assembly: Microsoft.Clm.Shared (in microsoft.clm.shared.dll)
Usage
Visual Basic |
---|
Dim instance As ClmValidationCustomClassException 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
-
A SerializationInfo object that is set with the serialized object data that describes the validation exception.
- context
-
A StreamingContext structure that describes the source and destination of the serialized stream, and provides any additional caller-defined context.
Remarks
This method sets the SerializationInfo object that is passed in the info parameter with information about the exception.
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.