GetMachineId Method
Gets the identifier of the computer on which the queue referenced by this MessageQueue is located.
Syntax
'Declaration Public Shared Function GetMachineId( _ ByVal machineName As String _ ) As Guid
'Usage Dim machineName As String Dim value As Guid value = MessageQueue.GetMachineId(machineName)
public static Guid GetMachineId( string machineName )
public: static Guid GetMachineId( String^ machineName )
Parameters
- machineName
- The name of the computer that contains the queue, without the two preceding backslashes (\\).
Return Value
A System.Guid that represents a unique identifier for the computer on which the queue is located.
Exceptions
Exception | Description |
---|---|
MessageQueueException | The computer identifier could not be retrieved, possibly because the directory service is not available; for example, if you are working offline.-or- An error occurred when accessing a Message Queuing method. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also