Compartilhar via


AddressEntry.GetFreeBusy Method

Returns a String (string in C#) value that represents the availability of the individual user 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 AddressEntry
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

  • MinPerChar
    Type: System.Int32

    Specifies the length of each time slot in minutes. The default value is 30.

  • CompleteFormat
    Type: System.Object

    Specifies a Boolean value (bool in C#) that represents the level of information returned for each time slot. The default value is False.

Return Value

Type: System.String
A String (string in C#) value that represents the availability of the user for the specified period. The string value contains one character for each time slot within the specified period.

Remarks

Note

If an address entry represents a distribution list, the status of its individual members cannot be returned to you with the GetFreeBusy method. A meeting request should be sent only to single messaging users. You can determine if a messaging user is a distribution list by determining if its DisplayType property is olDistList or olPrivateDistList.

The contents of the string returned by this method are determined by the CompleteFormat parameter.

If CompleteFormat is set to False, the default value, the string returned by this method contains one of the following characters for each time slot:

Character

Description

0

The time slot represents a free period.

1

The time slot represents a tentative, out of office (OOF), or busy period.

If CompleteFormat is set to True, the string returned by this method contains one of the following characters for each time slot:

Character

Description

0

The time slot represents a free period.

1

The time slot represents a tentative period.

2

The time slot represents a busy period.

3

The time slot represents an out of office (OOF) period.

See Also

Reference

AddressEntry Interface

AddressEntry Members

Microsoft.Office.Interop.Outlook Namespace