Permission.Add Method

Creates a new set of permissions on the active document for the specified user.

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

Syntax

'Declaration
Function Add ( _
    UserId As String, _
    Permission As Object, _
    ExpirationDate As Object _
) As UserPermission
'Usage
Dim instance As Permission
Dim UserId As String
Dim Permission As Object
Dim ExpirationDate As Object
Dim returnValue As UserPermission

returnValue = instance.Add(UserId, Permission, _
    ExpirationDate)
UserPermission Add(
    string UserId,
    Object Permission,
    Object ExpirationDate
)

Parameters

  • UserId
    Type: System.String

    Optional Object. The email address (in the format user@domain.com) of the user to whom permissions on the active document are being granted.

  • Permission
    Type: System.Object

    Optional String. The permissions on the active document that are being granted to the specified user.

  • ExpirationDate
    Type: System.Object

    Required String. The expiration date for the permissions that are being granted.

Return Value

Type: Microsoft.Office.Core.UserPermission

See Also

Reference

Permission Interface

Permission Members

Microsoft.Office.Core Namespace