UriExtensions GetIpAddress Method Couchbase .NET SDK 2.1.0 Documentation
Resolves a given Uri to an IPAddress using DNS if necessary.

Namespace: Couchbase.Utils
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax
public static IPAddress GetIpAddress(
	this Uri uri
)

Parameters

uri
Type: System Uri
The Uri to resolve the IPAddress from.

Return Value

Type: IPAddress
An IPAddress reference.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Uri. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
Remarks
Only returns IPV4 Addresses!
See Also