UserObject 接口

定义

提供可用于返回有关当前用户信息的方法。

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

注解

此类型是用于 Coclass(托管代码需要此 Coclass 来实现 COM 互操作性)的包装。 使用此类型来访问由此 Coclass 实现的 COM 接口。 有关 COM 接口的信息(包括指向其成员说明的链接),请参阅User

使用 用户界面 的成员可提供与 InfoPath 2003 的兼容性。 若要使用添加到 Microsoft InfoPath 2010 中对象模型的新成员User2,必须强制转换由 User 对象的 属性返回的对象Application。 为 User2 类型。 有关详细信息,请参阅如何:使用与 InfoPath 2003 不兼容的对象模型成员。

通过 对象的 属性Application访问 UserUserObject 对象。

方法

IsCurrentUser(String)

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

(继承自 User)
IsUserMemberOf(String)

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

(继承自 User)

适用于