Share via


UserPermission Interface 

The UserPermission object associates a set of permissions on the active document with a single user and an optional expiration date.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Usage

Public Class serPermissionImplementation
    Implements UserPermission
End Class
Dim serPermissionImplementation1 As New serPermissionImplementation()

Syntax

Public Interface UserPermission
    Inherits _IMsoDispObj
public interface UserPermission : _IMsoDispObj
public interface class UserPermission : public _IMsoDispObj
public interface UserPermission implements _IMsoDispObj
public interface UserPermission implements _IMsoDispObj

Remarks

Represents a member of the active document's Permission collection.

Use the Add method of the Permission object to grant specific permissions on the active document to a new user, with an optional expiration date. Use the Remove method of the UserPermission object to remove a user and the user's permissions.

While some permissions granted through the user interface (such as msoPermissionPrint) apply to all users, you can use the UserPermission object to assign them on a per-user basis with per-user expiration dates.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Core Namespace

Other Resources

UserPermission Members