NAnt SDK Documentation - v0.92 |

# BuildException.GetObjectData Method

Serializes this object into the SerializationInfo provided.

[Visual Basic]
<SecurityPermission(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, Unrestricted:=False)>
Overrides Public Sub GetObjectData( _
ByVal info As SerializationInfo, _
ByVal context As StreamingContext _
) _
Implements ISerializable.GetObjectData
[C#]
[SecurityPermission(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, Unrestricted=False)]
public override void GetObjectData(
SerializationInfo info,
StreamingContext context
);

#### Parameters

info
  The SerializationInfo to populate with data.
context
  The destination for this serialization.

#### Implements

ISerializable.GetObjectData

#### See Also

BuildException Class | NAnt.Core Namespace