Share via


IFPCEERefs::ExistsScopedItem method

Applies to: desktop apps only

The ExistsScopedItem method returns a Boolean value that indicates whether the collection contains an FPCRef object that references an item with the specified scope and name. The scope indicates whether the referenced item is defined for the array or for the enterprise.

Syntax

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

Parameters

  • Scope [in]
    Required. Value from the FpcItemScope enumerated type that specifies the scope of the referenced item.

  • 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 an object with the specified scope and name, or to VARIANT_FALSE if the collection does not contain an object with the specified scope and name.

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 object with the name specified, or to False if the collection does not contain an object with the name specified.

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