Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFDataLossException.GetObjectData Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDataLossException.GetObjectData Method

Note: This API is now obsolete.

Populates a SerializationInfo with the data needed to serialize the target object.

Namespace:  OSIsoft.AF.Data
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

[SecurityCriticalAttribute]
[ObsoleteAttribute("Uses legacy serialization infrastructure")]
public override void GetObjectData(
	SerializationInfo info,
	StreamingContext context
)
<SecurityCriticalAttribute>
<ObsoleteAttribute("Uses legacy serialization infrastructure")>
Public Overrides Sub GetObjectData ( 
	info As SerializationInfo,
	context As StreamingContext
)

Dim instance As AFDataLossException
Dim info As SerializationInfo
Dim context As StreamingContext

instance.GetObjectData(info, context)
public:
[SecurityCriticalAttribute]
[ObsoleteAttribute(L"Uses legacy serialization infrastructure")]
virtual void GetObjectData(
	SerializationInfo^ info, 
	StreamingContext context
) override
[<SecurityCriticalAttribute>]
[<ObsoleteAttribute("Uses legacy serialization infrastructure")>]
abstract GetObjectData : 
        info : SerializationInfo * 
        context : StreamingContext -> unit 
[<SecurityCriticalAttribute>]
[<ObsoleteAttribute("Uses legacy serialization infrastructure")>]
override GetObjectData : 
        info : SerializationInfo * 
        context : StreamingContext -> unit 

Parameters

info
Type: System.Runtime.SerializationSerializationInfo
The SerializationInfo to populate with data.
context
Type: System.Runtime.SerializationStreamingContext
The destination (see StreamingContext) for this serialization.

Implements

ISerializableGetObjectData(SerializationInfo, StreamingContext)
ISerializableGetObjectData(SerializationInfo, StreamingContext)
_ExceptionGetObjectData(SerializationInfo, StreamingContext)

Remarks

Any objects included in the SerializationInfo are automatically tracked and serialized by the formatter. This implementation uses the object's Persist method to create the serialization data for the object.

Code that calls GetObjectData requires the SecurityPermission for providing serialization services.

Version Information

AFSDK

Supported in: 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6
Obsolete (compiler warning) in 3.1.1

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in