Share via


Permission.Count Property 

Returns an Integer indicating the number of items in the specified collection.

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

Usage

Dim permission1 As Permission

Dim returnValue As Integer
returnValue = permission1.Count

Syntax

ReadOnly Property Count() As Integer
int Count {get;}
property Int32 Count{
    Int32 get();
}
public int get_Count();
function get Count() : int;

Remarks

Returns 0 (zero) if permissions are not enabled on the active document. When permissions are enabled, the Count property always returns at least 1, representing the permissions of the document author.

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