Share via


IFPCProtocolDefinition2::AssociateWithStandard method

Applies to: desktop apps only

The AssociateWithStandard method sets the protocol definition to represent a nonstandard protocol and associates it with a standard protocol.

Syntax

HRESULT AssociateWithStandard(
  [in]  FpcItemScope Scope,
  [in]  FpcItemScope Scope,
  [in]  BSTR StandardProtocol,
  [in]  String StandardProtocol
);
FPCProtocolDefinition.AssociateWithStandard( _
  ByVal Scope As FpcItemScope, _
  ByVal Scope As FpcItemScope, _
  ByVal StandardProtocol As BSTR, _
  ByVal StandardProtocol As String _
)

Parameters

  • Scope [in]

    C++

    Required. Value from the FpcItemScope enumeration that specifies the scope of the standard protocol definition. The scope indicates whether the standard protocol is defined on the array level or the enterprise level.

    VB

    Required. Value from FpcItemScope enumeration that specifies the scope of the standard protocol definition. The scope indicates whether the standard protocol is defined on the array level or the enterprise level.

  • StandardProtocol [in]

    C++

    Required. BSTR that specifies the name of the standard protocol.

    VB

    Required. String that specifies the name of the standard protocol.

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 AssociatedWithStandard property to True (VARIANT_TRUE in C++) and sets the standard protocol referenced in the AssociatedStandardProtocol property.

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

FPCProtocolDefinition

 

 

Build date: 7/12/2010