Determines the index of a DNS record in the collection

Namespace:  JHSoftware.SimpleDNSPlus
Assembly:  SDNSAPI (in SDNSAPI)
Version: 1.1.0.0 (1.1.0.0)

Syntax

C#
public int IndexOf(
	string name,
	string type,
	params string[] data
)
Visual Basic (Declaration)
Public Function IndexOf ( _
	name As String, _
	type As String, _
	ParamArray data As String() _
) As Integer

Parameters

name
Type: System..::.String
Domain name (FQDN) of the record
type
Type: System..::.String
The type of the record. For example "A" or "MX".
data
Type: array<System..::.String>[]()[]
One or more string values (depending on the record type) containing the data of the record. IMPORTANT: The number of data parameters must match exactly the number of data fields for the record type (see "Record types and data fields").

Return Value

The index of item if found in the collection; otherwise, -1.

Remarks

If a value occurs multiple times in the collection, the IndexOf method always returns the first instance found.

See Also