AppliesToContentMethod Property of the IFPCAccessProperties Interface

The AppliesToContentMethod property gets or sets a value from the FpcAppliesToContentMethodType enumerated type that indicates whether the rule applies to all types of content or only to specified types of content.

[C++]
HRESULT put_AppliesToContentMethod(
	FpcAppliesToContentMethodType AppliesToContentMethodType
);
HRESULT get_AppliesToContentMethod(
	FpcAppliesToContentMethodType* pAppliesToContentMethodType
);

Parameters

pAppliesToContentMethodType

Pointer to a variable that on return receives a value from the FpcAppliesToContentMethodType enumerated type indicating whether the rule applies to all types of content or only to the file types and MIME types specified in the ContentTypeSetsUsed property.

AppliesToContentMethodType

Value from the FpcAppliesToContentMethodType enumerated type that indicates whether the rule applies to all types of content or only to the file types and MIME types specified in the ContentTypeSetsUsed property.

Return Value

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

[Visual Basic]
Property AppliesToContentMethod As FpcAppliesToContentMethodType

Property Value

Value from the FpcAppliesToContentMethodType enumerated type that indicates whether the rule applies to all types of content or only to the file types and MIME types specified in the ContentTypeSetsUsed property.

Remarks

This property is read/write. Its default value is fpcAppliesToAllContent, which indicates that the rule applies to all file types and MIME types.

If this property is set to fpcAppliesToSpecifiedContent, the access rule is applicable only to HTTP and tunneled FTP traffic of the content types specified. As a result, if the rule applies to any protocols other than HTTP and FTP, the rule action (allow or deny) will not be applied to those protocols.

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

FPCAccessProperties


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.