Microsoft Internet Security and Acceleration Server 2004 SDK |
The SpecifiedProtocols property gets an FPCRefs collection that contains references to the FPCProtocolDefinition objects defining the protocols to which the rule applies or the protocols that are excluded from the rule.
HRESULT get_SpecifiedProtocols( IFPCRefs** ppRefs );
This property is read-only. It can be modified by calling the methods of the IFPCRefs interface retrieved.
The SpecifiedProtocols property gets an FPCRefs collection that contains references to the FPCProtocolDefinition objects defining the protocols to which the rule applies or the protocols that are excluded from the rule.
Property SpecifiedProtocols As FPCRefs
This property is read-only. It can be modified by calling the methods of the FPCRefs collection retrieved.
The following Visual Basic code illustrates the use of the SpecifiedProtocols property.
Dim root As New FPCLib.FPC Dim containingArray As FPCArray Dim policyRules As FPCPolicyRules Dim newRule As FPCPolicyRule Set containingArray = root.GetContainingArray Set policyRules = containingArray.ArrayPolicy.PolicyRules Set newRule = policyRules.AddAccessRule("All Web Access") newRule.Action = fpcActionAllow newRule.Description = "Basic Web access to Everyone" newRule.Enabled = True newRule.AccessProperties.ProtocolSelectionMethod = fpcSpecifiedProtocols newRule.AccessProperties.SpecifiedProtocols.Add ("HTTP", fpcInclude) newRule.AccessProperties.SpecifiedProtocols.Add ("HTTPS", fpcInclude) newRule.SetAppliesAlways policyRules.Save
Server: Requires Windows Server 2003 or
Windows 2000.
Version: Requires Internet Security and Acceleration
Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration
Server 2004 Administration Library.