Action Property of the IFPCPolicyRule Interface

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

[C++]
HRESULT put_Action(
	FpcPolicyRuleActions PolicyRuleActions
);
HRESULT get_Action(
	FpcPolicyRuleActions* pPolicyRuleActions
);

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 Value

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

[Visual Basic]
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

Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCPolicyRule


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

[an error occurred while processing this directive]