Share via


CopyOriginContext.GetObjectData Method

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

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Public Overridable Sub GetObjectData ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public virtual void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter = true)]
public:
virtual void GetObjectData(
    SerializationInfo^ info, 
    StreamingContext context
)
[<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 function GetObjectData(
    info : SerializationInfo, 
    context : StreamingContext
)

Parameters

  • info
    Type: SerializationInfo

    The SerializationInfo to populate with data.

  • context
    Type: StreamingContext

    The destination (see StreamingContext) for this serialization.

Implements

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

.NET Framework Security

See Also

Reference

CopyOriginContext Class

Microsoft.VisualStudio.Modeling Namespace