Share via


IFPCSubnet::IPMask property

Applies to: desktop apps only

The IPMask property gets or sets the IP mask of the subnet.

This property is read/write.

Syntax

HRESULT put_IPMask(
  BSTR bstrIPMask
);

HRESULT get_IPMask(
  BSTR **pbstrIPMask
);
' Data type: String

Property IPMask( _
  ByVal bstrIPMask As BSTR, _
  ByVal pbstrIPMask As BSTR _
) As String

Property value

String that specifies the IP mask of the subnet.

Error codes

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Remarks

This property is read/write.

The subnet mask is specified in this property as a string in dotted-decimal format. Its binary value should consist of a series of ones followed by a series of zeros. These series of bits separate the IP address specified in the IPAddress property into two parts. The first part becomes a network address, and the bits of the second part are reserved for all of the possible host addresses in the network segment.

The subnet mask typically consists of zero, one, two, or three binary octets that are represented in dotted-decimal format by the decimal number 255 and one binary octet that contains a series of ones (which may be empty) followed by a series of zeros and is represented by one of the following decimal numbers:

  • 254
  • 252
  • 248
  • 240
  • 224
  • 192
  • 128
  • 0

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCSubnet

 

 

Build date: 7/12/2010