다음을 통해 공유


Offline Quick Reference

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The following table shows the functions, methods, and properties that are affected when operating offline in a Windows® 2000 or Windows Server 2003 environment.

When operating offline, your application must avoid using any call that requires access to the directory service. Any call to the directory service will cause an error or time-out to occur. However, calls which use public queue properties that were cached when the computer was booted with access to the directory service can succeed in offline mode.

Functions, Methods, and Properties How they work
MQCreateQueue

 MSMQQueueInfo.Create
You can create only local private queues while operating offline. You cannot create public queues because there is no access to the directory service.
MQDeleteQueue

 MSMQQueueInfo.Delete
You can delete only local private queues while operating offline. You cannot delete public queues because there is no access to the directory service.
MQGetMachineProperties

 MSMQApplication.MachineIdOfMachineName
Cannot be used offline. Getting the properties of a machine requires access to the directory service (including the properties of the local offline application computer).
MQGetQueueProperties You can retrieve only properties of local private queues while operating offline. You cannot retrieve the properties of public queues because there is no access to the directory service.
MQGetQueueSecurity You can retrieve only security descriptors of local private queues while operating offline. You cannot retrieve the security descriptors of public queues because there is no access to the directory service.
MQLocateBegin

 MSMQQueueInfos.Reset
You cannot locate public queues while operating offline. Queries can be made only while online.
MQLocateNext

 MSMQQueueInfos.Next
You cannot locate public queues while operating offline. Queries can be made only while online.
MQLocateEnd You cannot locate public queues while operating offline. Queries can be made only while online.
MQOpenQueue

 MSMQQueueInfo.Open
You must either cache format names for queues while online or construct direct format names. You can then use these cached format names or direct format names to open the queues while you are operating offline.
MQPathNameToFormatName Format names for public queues cannot be retrieved while operating offline. This operation requires access to the directory service.
MQRegisterCertificate

 MSMQApplication.RegisterCertificate
Cannot be used offline.
MQSetQueueProperties You can set only properties of local private queues while operating offline. You cannot set the properties of public queues because there is no access to the directory service.
MQSetQueueSecurity You can set only security descriptors of local private queues while operating offline. You cannot set the security descriptors of public queues because there is no access to the directory service.

More Information

For information on See
Opening queues when operating offline Opening Queues Offline
Sending messages while operating offline Sending Messages Offline