次の方法で共有


_NameSpace.Offline Property

Returns a Boolean (bool in C#) indicating True if Outlook is offline (not connected to an Exchange server), and False if online (connected to an Exchange server). Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property Offline As Boolean
    Get
'Usage
Dim instance As _NameSpace
Dim value As Boolean

value = instance.Offline
[DispIdAttribute()]
bool Offline { get; }

Property Value

Type: System.Boolean

Remarks

The Offline property returns valid information only for an Exchange profile. It is not intended for non-Exchange account types such as POP3, IMAPI, and HTTP.

If the _NameSpace.ExchangeConnectionMode property is olOffline or olDisconnected, the Offline property will return True. If the ExchangeConnectionMode property is olOnline, olConnected, or olConnectedHeaders, the Offline property will return False.

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace