MessageQueuePermissionAttribute.Label プロパティ
アセンブリ: System.Messaging (system.messaging.dll 内)

Dim instance As MessageQueuePermissionAttribute Dim value As String value = instance.Label instance.Label = value
メッセージ キューのラベル。


メッセージ キューのアクセス許可属性の Label プロパティに対し、値の取得と設定を行うコード例を次に示します。
// Connect to a queue on the local computer. MessageQueue queue = new MessageQueue(".\\exampleQueue"); // Create a new instance of MessageQueuePermissionAttribute. MessageQueuePermissionAttribute attribute = new MessageQueuePermissionAttribute( System.Security.Permissions.SecurityAction.Assert); // Set the attribute's Label property value, based on the queue's Label // property value. attribute.Label = queue.Label; // Display the new value of the attribute's Label property. Console.WriteLine("attribute.Label: {0}", attribute.Label);
// Connect to a queue on the local computer. MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue"); // Create a new instance of MessageQueuePermissionAttribute. MessageQueuePermissionAttribute^ attribute = gcnew MessageQueuePermissionAttribute( System::Security::Permissions::SecurityAction::Assert); // Set the attribute's Label property value, based on the queue's Label // property value. attribute->Label = queue->Label; // Display the new value of the attribute's Label property. Console::WriteLine("attribute->Label: {0}", attribute->Label); queue->Close();
// Connect to a queue on the local computer. MessageQueue queue = new MessageQueue(".\\exampleQueue"); // Create a new instance of MessageQueuePermissionAttribute. MessageQueuePermissionAttribute attribute = new MessageQueuePermissionAttribute( System.Security.Permissions.SecurityAction.Assert); // Set the attribute's Label property value, based on the queue's Label // property value. attribute.set_Label(queue.get_Label()); // Display the new value of the attribute's Label property. Console.WriteLine("attribute.Label: {0}", attribute.get_Label());


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からMessageQueuePermissionAttribute.Label プロパティを検索する場合は、下記のリンクをクリックしてください。

- MessageQueuePermissionAttribute.Label プロパティのページへのリンク