Share via


IPMask Property of the IFPCSubnet Interface

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

C++

HRESULT put_IPMask(
    BSTR bstrIPMask
);
HRESULT get_IPMask(
    BSTR** pbstrIPMask
);

Parameters

  • bstrIPMask
    BSTR that specifies the IP mask of the subnet.

  • pbstrIPMask
    Pointer to a BSTR that is set on return to a string value specifying the IP mask of the subnet.

Return Value

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

Visual Basic

Property IPMask As String

Property Value

String that specifies the IP mask of the subnet.

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

Client Requires Windows 7 or Windows Vista.
Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCSubnet

Send comments about this topic to Microsoft

Build date: 6/30/2010