Microsoft Internet Security and Acceleration Server 2004 SDK

Action Property of IFPCPolicyRule[C++]

FPCPolicyRule.Action [Visual Basic]

[C++]

The Action property gets or sets the type of action that this rule performs. The action may be to allow requests or deny requests.

HRESULT get_Action(
  FpcPolicyRuleActions* pPolicyRuleActions
);

HRESULT put_Action(
  FpcPolicyRuleActions PolicyRuleActions
);

Parameters

pPolicyRuleActions
Pointer to a value from the FpcPolicyRuleActions enumerated type that is set on return to either fpcPolicyRuleActionAllow, which indicates that the rule allows requests, or to fpcPolicyRuleActionDeny, which indicates that the rule denies requests.
PolicyRuleActions
Value from the FpcPolicyRuleActions enumerated type that specifies whether the rule allows or denies requests.

Return Values

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

Remarks

This property is read/write. The default value for an access rule is fpcPolicyRuleActionDeny, which indicates that the rule denies requests. The default value for a server publishing rule or a Web publishing rule is fpcPolicyRuleActionAllow, which indicates that the rule allows requests.

[Visual Basic]

The Action property gets or sets the type of action that this rule performs. The action may be to allow requests or deny requests.

Property Action As FpcPolicyRuleActions

Property Value

Value from the FpcPolicyRuleActions enumerated type. The possible values are fpcPolicyRuleActionAllow, which indicates that the rule allows requests, and fpcPolicyRuleActionDeny, which indicates that the rule denies requests.

Remarks

This property is read/write. The default value for an access rule is fpcPolicyRuleActionDeny, which indicates that the rule denies requests. The default value for a server publishing rule or a Web publishing rule is fpcPolicyRuleActionAllow, which indicates that the rule allows requests.

Requirements

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.

See Also

FPCPolicyRule