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

Dim instance As MessageQueuePermissionAttribute Dim value As String value = instance.Category instance.Category = value
/** @property */ public String get_Category () /** @property */ public void set_Category (String value)
キュー カテゴリ (メッセージ キュー タイプ ID)。これによって、アプリケーションはキューを分類できます。


メッセージ キューのアクセス許可属性の Category プロパティに対し、値の取得と設定を行うコード例を次に示します。
// 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 Category property value, based on the queue's // Category property value. attribute.Category = queue.Category.ToString(); // Display the new value of the attribute's Category property. Console.WriteLine("attribute.Category: {0}", attribute.Category.ToString());
// 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 Category property value, based on the queue's // Category property value. attribute->Category = queue->Category.ToString(); // Display the new value of the attribute's Category property. Console::WriteLine("attribute->Category: {0}", attribute->Category); 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 Category property value, based on the queue's // Category property value. attribute.set_Category(queue.get_Category().ToString()); // Display the new value of the attribute's Category property. Console.WriteLine("attribute.Category: {0}", attribute.get_Category().ToString());


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.Category プロパティを検索する場合は、下記のリンクをクリックしてください。

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