Share via


Permission.DocumentAuthor Property 

Returns or sets the name in email form of the author of the active document.

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

Usage

Dim permission1 As Permission

Dim returnValue As String
returnValue = permission1.DocumentAuthor

Dim sampleValue As String
permission1.DocumentAuthor = sampleValue

Syntax

Property DocumentAuthor() As String
string DocumentAuthor {get; set;}
property String^ DocumentAuthor{
    String^ get();
    Void set(String^);
}
public System.String get_DocumentAuthor();
public void set_DocumentAuthor(System.String);
function get DocumentAuthor() : String;
function set DocumentAuthor(String);

Remarks

The DocumentAuthor property returns or sets the author of the active document. The author always has non-expiring owner rights to the document, whether owner permission is granted explicitly (through a UserPermission object) or not.

The DocumentAuthor property can only be changed to a different account that has been certified through the permissions user interface to open restricted content on the local machine. In most cases, users who have a single Windows account can only choose between their Windows and their Passport identities.

If the user's Microsoft Windows and Passport identities use the same email address, use the format passport:someone@example.com to specify the Passport identity as the DocumentAuthor property.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Permission Interface
Microsoft.Office.Core Namespace

Other Resources

Permission Members