MessageQueue.CanRead 속성

정의

MessageQueue를 읽을 수 있는지 여부를 나타내는 값을 가져옵니다.

public:
 property bool CanRead { bool get(); };
[System.ComponentModel.Browsable(false)]
[System.Messaging.MessagingDescription("MQ_CanRead")]
public bool CanRead { get; }
[<System.ComponentModel.Browsable(false)>]
[<System.Messaging.MessagingDescription("MQ_CanRead")>]
member this.CanRead : bool
Public ReadOnly Property CanRead As Boolean

속성 값

MessageQueue가 있고 애플리케이션에서 이 큐를 읽을 수 있으면 true이고, 그렇지 않으면 false입니다.

특성

예제

다음 코드 예제에서는 메시지 큐의 CanRead 속성 값을 표시합니다.

// Display the value of the queue's CanRead property.
Console.WriteLine("MessageQueue.CanRead: {0}", queue.CanRead);

설명

CanRead 애플리케이션은 큐에서 메시지를 받거나 피킹할 수 있는지 여부를 나타냅니다. 이 이trueCanReadMessageQueue 큐에서 메시지를 받거나 피킹할 수 있습니다. 그렇지 않으면 사용할 수 없습니다.

CanRead 됩니다 false 큐의 단독 액세스를 사용 하 여 이미 열려 있으면 (비독점적 액세스 및이 사용 하 여 열려 있는 경우 또는 MessageQueue 단독 액세스 요청), 애플리케이션에 액세스할 수 있는 충분 한 권한이 없는 경우 또는 합니다. 애플리케이션 큐에서 읽은 하려고 하는 경우 때 CanReadfalse에 액세스가 거부 되었습니다.

다음 표에서는 이 속성을 다양한 작업 그룹 모드에서 사용할 수 있는지 여부를 보여 줍니다.

작업 그룹 모드 사용 가능
수집 Yes
로컬 컴퓨터 및 직접 형식 이름 Yes
원격 컴퓨터 No
원격 컴퓨터 및 직접 형식 이름 Yes

적용 대상

추가 정보