Attachmate Reflection 2014 .NET API Reference
GetObjectData Method
Example 


The System.Runtime.Serialization.SerializationInfo to populate with data.
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Syntax
'Declaration
 
<SecurityPermissionAttribute(Flags=SecurityPermissionFlag.SerializationFormatter, 
   Assertion=False, 
   UnmanagedCode=False, 
   SkipVerification=False, 
   Execution=False, 
   ControlThread=False, 
   ControlEvidence=False, 
   ControlPolicy=False, 
   SerializationFormatter=True, 
   ControlDomainPolicy=False, 
   ControlPrincipal=False, 
   ControlAppDomain=False, 
   RemotingConfiguration=False, 
   Infrastructure=False, 
   BindingRedirects=False, 
   Action=SecurityAction.Demand Or  _
    SecurityAction.Deny Or  _
    SecurityAction.LinkDemand, 
   Unrestricted=False)>
Public Overrides Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
) 
'Usage
 
Dim instance As IbmHostsException
Dim info As SerializationInfo
Dim context As StreamingContext
 
instance.GetObjectData(info, context)
[SecurityPermissionAttribute(Flags=SecurityPermissionFlag.SerializationFormatter, 
   Assertion=false, 
   UnmanagedCode=false, 
   SkipVerification=false, 
   Execution=false, 
   ControlThread=false, 
   ControlEvidence=false, 
   ControlPolicy=false, 
   SerializationFormatter=true, 
   ControlDomainPolicy=false, 
   ControlPrincipal=false, 
   ControlAppDomain=false, 
   RemotingConfiguration=false, 
   Infrastructure=false, 
   BindingRedirects=false, 
   Action=SecurityAction.Demand | 
    SecurityAction.Deny | 
    SecurityAction.LinkDemand, 
   Unrestricted=false)]
public override void GetObjectData( 
   SerializationInfo info,
   StreamingContext context
)

Parameters

info
The System.Runtime.Serialization.SerializationInfo to populate with data.
context
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.
Exceptions
ExceptionDescription
System.Security.SecurityExceptionThe caller does not have the required permission.
Example
IbmHostsException host;
host.GetObjectData(System.Runtime.Serialization.SerializationInfo serialInfo,
                   System.Runtime.Serialization.StreamingContext context);
Requirements

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also

Reference

IbmHostsException Class
IbmHostsException Members

Send Feedback