ExtensionMethods.GetBroadcastAddress Method

Tungsten Suite

ExtensionMethodsGetBroadcastAddress Method

Determines the broadcast address from an ip address and subnet mask

Namespace:  W.Net
Assembly:  Tungsten.Net (in Tungsten.Net.dll) Version: 2.0.2
Syntax
C#
public static IPAddress GetBroadcastAddress(
	this IPAddress address,
	IPAddress subnetMask
)

Parameters

address
Type: System.NetIPAddress
The IP address
subnetMask
Type: System.NetIPAddress
The subnet mask

Return Value

Type: IPAddress
The broadcast IP address associated with the given IP address and subnet mask

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPAddress. 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).
Remarks
See Also