다음을 통해 공유


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

속성 값

true MessageQueue 존재하고 애플리케이션에서 읽을 수 있으면 이고, false그렇지 않으면 .

특성

예제

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

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

설명

CanRead 는 애플리케이션이 큐에서 메시지를 피킹하거나 받을 수 있는지 여부를 나타냅니다. 이 trueMessageQueue 경우 CanRead 큐에서 메시지를 받거나 피킹할 수 있습니다. 그렇지 않으면 불가능합니다.

CanReadfalse 큐가 단독 읽기 액세스 권한으로 이미 열려 있거나(또는 비독점 액세스로 열려 있고 단독 MessageQueue 액세스를 요청하는 경우) 또는 애플리케이션에 액세스할 수 있는 충분한 권한이 없는 경우입니다. 애플리케이션이 있는 경우 CanReadfalse큐에서 읽으려고 하면 액세스가 거부됩니다.

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

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

적용 대상

추가 정보