User2 接口

定义

此类型是用于由 Coclass(托管代码需要此 Coclass 来实现 COM 互操作性)实现的 COM 接口的包装。 要访问由此接口指定的成员,请使用用于包装实现此接口的 Coclass 的类型。 有关该类型的信息(包括用法、备注和示例),请参阅UserObject

public interface class User2 : Microsoft::Office::Interop::InfoPath::SemiTrust::User
[System.Runtime.InteropServices.Guid("096cd736-0786-11d1-95fa-0080c78ee3bb")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)]
public interface User2 : Microsoft.Office.Interop.InfoPath.SemiTrust.User
type User2 = interface
    interface User
Public Interface User2
Implements User
属性
实现

属性

LoginName

获取用户的完整凭据。

UserName

仅获取用户的用户名。

方法

IsCurrentUser(String)

如果当前用户与指定的用户名相匹配,则返回 true

IsUserMemberOf(String)

返回一个值,指示当前用户是否为指定组的成员。

适用于