_ExchangeUser.GetFreeBusy Method

Obtains a String (string in C#) representing the availability of the ExchangeUser for a period of 30 days from the start date, beginning at midnight of the date specified.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetFreeBusy ( _
    Start As DateTime, _
    MinPerChar As Integer, _
    CompleteFormat As Object _
) As String
'Usage
Dim instance As _ExchangeUser
Dim Start As DateTime
Dim MinPerChar As Integer
Dim CompleteFormat As Object
Dim returnValue As String

returnValue = instance.GetFreeBusy(Start, _
    MinPerChar, CompleteFormat)
[DispIdAttribute()]
string GetFreeBusy(
    DateTime Start,
    int MinPerChar,
    Object CompleteFormat
)

Parameters

  • Start
    Type: System.DateTime

    The date of availability, starting at midnight.

  • MinPerChar
    Type: System.Int32

    Specifies the length of each time slot in minutes. Default is 30 minutes.

  • CompleteFormat
    Type: System.Object

    A value of True indicates that a finer granularity of busy time is returned in the free/busy string. A value of False indicates that a distinction between only the available and busy times is returned.

Return Value

Type: System.String
A String (string in C#) that represents the availability of the Exchange user for a period of 30 days from the start date, beginning at midnight of the date specified. Each character in the String (string in C#) is a value indicating if the user is available (0), and optionally, whether a busy time is marked tentative (1), out of office (3), or other (2).

See Also

Reference

_ExchangeUser Interface

_ExchangeUser Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get Availability Information for an Exchange User's Manager