次の方法で共有


IFPCNonWindowsUsers::Item method

Applies to: desktop apps only

The Item method retrieves the requested FPCNonWindowsUser object (IFPCNonWindowsUser interface in C++) from the collection. You can specify the object either by its namespace and user name, or by its one-based index.

Syntax

HRESULT Item(
  [in]            VARIANT IndexOrUsername,
  [in, optional]  BSTR Namespace,
  [out]           IFPCNonWindowsUser **pItem
);
FPCNonWindowsUsers.Item( _
  ByVal IndexOrUsername As Variant, _
  [ ByVal Namespace As String ], _
  ByRef pItem As IFPCNonWindowsUser _
) As FPCNonWindowsUser

Parameters

  • IndexOrUsername [in]
    Required. One-based index or user name of the object to retrieve.

  • Namespace [in, optional]

    C++ BSTR that specifies the authentication namespace for the non-Windows user. This parameter must be specified when you provide a user name in the IndexOrUsername parameter. The default value is an empty BSTR.
    VB String that specifies the authentication namespace for the non-Windows user. This parameter must be specified when you provide a user name in the IndexOrUsername parameter. The default value is an empty string.
  • pItem [out]
    Address of an interface pointer that on return points to the IFPCNonWindowsUser interface requested.

Return value

C++

The method can return one of the following:

  • S_OK, indicating that the operation succeeded.
  • An error code, indicating that the operation failed. In this case, the [out] parameter returned is a null object.

VB

This method returns a reference to the FPCNonWindowsUser object requested if successful. Otherwise, an error is raised that can be intercepted by using an error handler.

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

FPCNonWindowsUsers

 

 

Build date: 7/12/2010