Microsoft Internet Security and Acceleration Server 2000 |
Gets an FPCRefs collection of FPCRef objects that point to the protocols to which the rule applies.
[ collFPCRefs = ]FPCProtocolRule.SpecifiedProtocols
HRESULT get_SpecifiedProtocols( IFPCRefs **pcollFPCRefs );
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