Share via


AssociateWithStandard Method of the IFPCProtocolDefinition2 Interface

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

C++

Syntax

HRESULT AssociateWithStandard(
  [in]  FpcItemScope Scope,
  [in]  BSTR StandardProtocol
);

Parameters

  • Scope
    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.

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

Return Value

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

Visual Basic

Syntax

Sub AssociateWithStandard( _
  ByVal Scope As FpcItemScope, _
  ByVal StandardProtocol As String _
)

Parameters

  • Scope
    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
    Required. String that specifies the name of the standard protocol.

Return Value

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

Client Requires Windows 7 or Windows Vista.
Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCProtocolDefinition

Send comments about this topic to Microsoft

Build date: 6/30/2010