_ExchangeUser.Department Property

Returns a String (string in C#) representing the department for the ExchangeUser. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Department As String
    Get
    Set
'Usage
Dim instance As _ExchangeUser
Dim value As String

value = instance.Department

instance.Department = value
[DispIdAttribute()]
string Department { get; set; }

Property Value

Type: System.String

Remarks

This property corresponds to the MAPI property, PidTagDepartmentName.

Returns an empty string if this property has not been implemented or does not exist for the ExchangeUser object.

See Also

Reference

_ExchangeUser Interface

_ExchangeUser Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get Information About the Current User

How to: Get Information About Direct Reports of the Current User's Manager