IFPCAccessProperties::ContentTypeSetsUsed property

Applies to: desktop apps only

The ContentTypeSetsUsed property gets an FPCRefs collection that contains references to the FPCContentTypeSet objects defining the content type sets to which the rule applies.

This property is read-only.

Syntax

HRESULT get_ContentTypeSetsUsed(
  IFPCRefs **ppRefs
);
' Data type: FPCRefs

Property ContentTypeSetsUsed( _
  ByVal ppRefs As IFPCRefs _
) As FPCRefs

Property value

Reference to an FPCRefs collection that contains references to the content type sets to which the rule applies.

Error codes

This property method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

This property is read-only. It can be modified by calling the methods of the FPCRefs collection retrieved (the IFPCRefs interface retrieved in C++).

This property is applicable only if the AppliesToContentMethod property is set to fpcAppliesToSpecifiedContent. An access rule that applies only to specified content is applicable only to HTTP and tunneled FTP traffic of the content types specified and is not applicable to any other protocols (for example, HTTPS). 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.

When a Web proxy client specifies the HTTP or FTP protocol in a URL request and an access rule allows access to the destination, the Forefront TMG Web proxy forwards the request to the Web server. When a response is provided by the Web server, the Web proxy re-examines the access rules to determine whether there is an access rule that references a content type set containing the MIME content type specified in a Content-Type header in the response or its file name extension. If such a rule is found, the Web proxy performs its action. For requests that specify the HTTP protocol, only the responses can contain Content-Type headers. Responses to requests that specify the FTP protocol do not contain Content-Type headers, but the MIME content type of a response containing a folder listing is defined as text/html. For both protocols, the file name extension is checked only for responses that do not have a defined MIME content type.

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

FPCAccessProperties

 

 

Build date: 7/12/2010