Share via


IFPCUrlToCategoryMapping::SetUrlCategory method

Applies to: desktop apps only

The SetUrlCategory method sets the overriding URL category in the mapping based on the URL category identifier specified.

Syntax

HRESULT SetUrlCategory(
  FpcUrlCategoryT UrlCategoryID,
  FpcUrlCategoryT UrlCategoryID
);
FPCUrlToCategoryMapping.SetUrlCategory( _
  ByVal UrlCategoryID As FpcUrlCategoryT, _
  ByVal UrlCategoryID As FpcUrlCategoryT _
)

Parameters

  • UrlCategoryID

    C++

    Required. A value of type FpcUrlCategoryT that specifies the identifier of the overriding URL category.

    VB

    Required. A value of type FpcUrlCategoryT that specifies the identifier of the overriding URL category.

Return value

C++

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

VB

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

This method sets the overriding URL category that is referenced in the UrlCategory property of the mapping.

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

FPCUrlToCategoryMapping

 

 

Build date: 7/12/2010