Share via


IFPCRefs::Exists method

Applies to: desktop apps only

The Exists method returns a Boolean value that indicates whether the collection contains an FPCRef object that references the specified item.

Syntax

HRESULT Exists(
  [in]   BSTR Name,
  [out]  VARIANT_BOOL *pfExits
);
FPCRefs.Exists( _
  ByVal Name As String, _
  ByRef pfExits As VARIANT_BOOL _
) As Boolean

Parameters

  • Name [in]

    C++ Required. BSTR that specifies the name of the referenced item.
    VB Required. String that specifies the name of the referenced item.
  • pfExits [out]
    Pointer to a Boolean variable that is set on return to VARIANT_TRUE if the collection contains a reference to the specified item, or to VARIANT_FALSE if the collection does not contain a reference to the specified item.

Return value

C++

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

VB

Boolean value that is set to True if the collection contains an FPCRef object that references the specified item, or to False if the collection does not contain FPCRef object that references the specified item.

Remarks

This method determines whether the collection contains an FPCRef object that references an item with the specified name with the same scope (array or enterprise) as the object through which the FPCRefs collection was accessed. The ExistsScopedItem method can be used to determine whether the collection contains an FPCRef object that references an item with a specified scope.

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

FPCRefs

 

 

Build date: 7/12/2010