# ChannelId.GetObjectData(SerializationInfo, StreamingContext)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.broadcastchannel/orleans.broadcastchannel.channelid/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.broadcastchannel/orleans.broadcastchannel.channelid/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.BroadcastChannel/ChannelId.cs#L156-L159)

```csharp
public void GetObjectData(SerializationInfo info, StreamingContext context)
```

Populates a `System.Runtime.Serialization.SerializationInfo` with the data needed to serialize the target object.

### Parameters

- `info` (`SerializationInfo`): The `System.Runtime.Serialization.SerializationInfo` to populate with data.
- `context` (`StreamingContext`): The destination (see `System.Runtime.Serialization.StreamingContext`) for this serialization.

### Exceptions

- `System.Security.SecurityException`: The caller does not have the required permission.
