# WireData struct

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-3adc-4a53-917a-f6aa95c83138")]
public struct WireData : IEquatable<WireData>, IComparable<WireData>, IStorable
```

Represents the instance ids of the parameters at either end of a wire, as well as the indices within the respective input and output arrays.

## Constructors

- [WireData](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/ctor.md): (2 overloads) Create new wire data.

## Properties

- [Source](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/source.md): Gets the source id.
- [SourceIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/sourceindex.md): Gets the index of this wire in the source output array.
- [Target](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/target.md): Gets the target id.
- [TargetIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/targetindex.md): Gets the index of this wire in the target input array.

## Methods

- [CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/compareto.md): Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/equals.md): (2 overloads) Indicates whether this instance and a specified object are equal.
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/gethashcode.md): Returns the hash code for this instance.
- [IStorable.Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/grasshopperio-istorable-store.md)
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/tostring.md): Returns the fully qualified type name of this instance.
- [TryConnect](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/tryconnect.md): Try and create the wire between the specified parameters.
- [TryCreate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/trycreate.md): (static) Attempt to create wire data from two parameters. This method does not validate whether both parameters belong to the same document, or indeed any document.
- [TryDisconnect](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.wiredata/trydisconnect.md): Try and remove the wire between the specified parameters. If the connection exists but it at different indices, it will still be removed.
