Populates a specified
SerializationInfo with the data needed
to serialize this object.
Syntax
Visual Basic (Declaration) | |
---|
<SecurityPermissionAttribute(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,
Unrestricted=False)>
Overrides Public Sub GetObjectData( _
ByVal info As SerializationInfo, _
ByVal context As StreamingContext _
) |
C# | |
---|
[SecurityPermissionAttribute(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,
Unrestricted=false)]
public override void GetObjectData(
SerializationInfo info,
StreamingContext context
) |
C++/CLI | |
---|
[SecurityPermissionAttribute(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,
Unrestricted=false)]
public:
void GetObjectData(
SerializationInfo^ info,
StreamingContext context
) override |
Parameters
- info
- The SerializationInfo to populate with data.
- context
- The contextual information about the source or
destination of the serialization.
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also