User 接口

定义

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

public interface class User
[System.Runtime.InteropServices.Guid("096cd6bc-0786-11d1-95fa-0080c78ee3bb")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)]
public interface User
type User = interface
Public Interface User
派生
属性

方法

IsCurrentUser(String)

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

IsUserMemberOf(String)

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

适用于