IFPCAccessProperties::AppliesToContentMethod property
Applies to: desktop apps only
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.
This property is read/write.
Syntax
HRESULT put_AppliesToContentMethod(
FpcAppliesToContentMethodType AppliesToContentMethodType
);
HRESULT get_AppliesToContentMethod(
FpcAppliesToContentMethodType *pAppliesToContentMethodType
);
' Data type: FpcAppliesToContentMethodType
Property AppliesToContentMethod( _
ByVal AppliesToContentMethodType As FpcAppliesToContentMethodType, _
ByVal pAppliesToContentMethodType As FpcAppliesToContentMethodType _
) 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.
Error codes
These property methods return S_OK if the call is successful; otherwise, they return an error code.
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
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only) |
Version |
Forefront Threat Management Gateway (TMG) 2010 |
IDL |
Msfpccom.idl |
DLL |
Msfpccom.dll |
See also
Build date: 7/12/2010