ExistsScopedItem Method of the IFPCEERefs Interface
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.
C++
Syntax
HRESULT ExistsScopedItem(
[in] FpcItemScope Scope,
[in] BSTR Name,
[out] VARIANT_BOOL* pfExits
);
Parameters
Scope
Required. Value from the FpcItemScope enumerated type that specifies the scope of the referenced item.Name
Required. BSTR that specifies the name of the referenced item.pfExits
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
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Visual Basic
Syntax
Function ExistsScopedItem( _
ByVal Scope As FpcItemScope, _
ByVal Name As String _
) As Boolean
Parameters
Scope
Required. Value from the FpcItemScope enumerated type that specifies the scope of the referenced item.Name
Required. String that specifies the name of the referenced item.
Return Value
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
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
Send comments about this topic to Microsoft
Build date: 6/30/2010