Microsoft Internet Security and Acceleration Server 2000

FPCProtocolRule.SpecifiedProtocols Property

Gets an FPCRefs collection of FPCRef objects that point to the protocols to which the rule applies.

VBScript Syntax[VBScript]

[ collFPCRefs = ]FPCProtocolRule.SpecifiedProtocols

C++ Syntax[C++]

HRESULT get_SpecifiedProtocols( 
  IFPCRefs **pcollFPCRefs
);

Return values

collFPCRefs
Reference to an FPCRefs collection.

Example

The following Visual Basic code illustrates the use of the SpecifiedProtocols property.

  Dim objFPC As New FPCLib.FPC
  Dim MyProtocolRules As FPCProtocolRules
  Dim myarray As FPCArray
  Set myarray = objFPC.Arrays.GetContainingArray
  Dim rule As FPCProtocolRule
  
  Set MyProtocolRules = myarray.ArrayPolicy.ProtocolRules
  Set rule = MyProtocolRules.Add("Web access")
  rule.Action = fpcActionAllow
  rule.Description = "Basic web access to everyone"
  rule.Enabled = True
  rule.ProtocolSelectionMethod = fpcSpecifiedProtocols
  rule.SpecifiedProtocols.Add ("HTTP")
  rule.SpecifiedProtocols.Add ("HTTP-S")
  rule.SetAppliesAlways
  MyProtocolRules.Save

Applies To

FPCProtocolRule