UriExtensions GetIPEndPoint Method Couchbase .NET SDK 2.0
Gets an IPEndPoint given a valid Uri instance and port.

Namespace: Couchbase.Utils
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.2.0 (2.0.2.0)
Syntax
public static IPEndPoint GetIPEndPoint(
	this Uri uri,
	int port
)

Parameters

uri
Type: System Uri
The Uri to use to get the IPEndPoint
port
Type: System Int32
The network port to use.

Return Value

Type: IPEndPoint
An IPEndPoint 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).
See Also