MessageQueuePermissionEntryCollection Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Contient une collection fortement typée d’objets MessageQueuePermissionEntry.
public ref class MessageQueuePermissionEntryCollection : System::Collections::CollectionBase
[System.Serializable]
public class MessageQueuePermissionEntryCollection : System.Collections.CollectionBase
[<System.Serializable>]
type MessageQueuePermissionEntryCollection = class
inherit CollectionBase
Public Class MessageQueuePermissionEntryCollection
Inherits CollectionBase
- Héritage
- Attributs
Exemples
L'exemple de code suivant montre l'utilisation de MessageQueuePermissionEntryCollection.
#using <System.Messaging.dll>
#using <System.dll>
using namespace System;
using namespace System::Messaging;
public ref class MessageQueuePermissionEntryCollectionExample
{
// Demonstrates:
// public Int32 Add (MessageQueuePermissionEntry value)
public:
void AddExample()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection^ collection =
permission->PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label, queue->Category.ToString());
// Add the entry to the collection.
collection->Add(entry);
queue->Close();
}
// Demonstrates:
// public Void AddRange (MessageQueuePermissionEntry[] value)
public:
void AddRangeExample1()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection^ collection =
permission->PermissionEntries;
// Create an array of type MessageQueuePermissionEntry.
array<MessageQueuePermissionEntry^>^ entries =
gcnew array<MessageQueuePermissionEntry^>(1);
// Create a new instance of MessageQueuePermissionEntry and place the
// instance in the array.
entries[0] = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Add the array to the collection.
collection->AddRange(entries);
queue->Close();
}
// Demonstrates:
// public Void AddRange (MessageQueuePermissionEntryCollection value)
public:
void AddRangeExample2()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label, queue->Category.ToString());
// Add the entry to the permission's collection.
permission->PermissionEntries->Add(entry);
// Create another new instance of MessageQueuePermission.
MessageQueuePermission^ newPermission = gcnew MessageQueuePermission();
// Use AddRange() to append the original permission's collection to the
// new permission's collection.
newPermission->PermissionEntries->AddRange(
permission->PermissionEntries);
// To show that AddRange() copies collections by value and not by
// reference, we'll clear the original permission's collection, then
// display a count of how many entries are in the original permission's
// collection and how many entries are in the new permission's
// collection.
// Clear the original permission's collection.
permission->PermissionEntries->Clear();
// The original permission now contains 0 entries, but the new
// permission still contains 1 entry.
Console::WriteLine("Original permission contains {0} entries.",
permission->PermissionEntries->Count);
Console::WriteLine("New permission contains {0} entries.",
newPermission->PermissionEntries->Count);
queue->Close();
}
// Demonstrates:
// public Boolean Contains (MessageQueuePermissionEntry value)
public:
void ContainsExample()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection^ collection =
permission->PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Add the entry to the collection.
collection->Add(entry);
// Show that the collection contains the entry.
Console::WriteLine("Collection contains first entry (true/false): {0}",
collection->Contains(entry));
// Create another new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ newEntry =
gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Send,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Show that the collection does not contain the new entry.
Console::WriteLine(
"Collection contains second entry (true/false): {0}",
collection->Contains(newEntry));
queue->Close();
}
// Demonstrates:
// public Void CopyTo (MessageQueuePermissionEntry[] array, Int32 index)
public:
void CopyToExample()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection^ collection =
permission->PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Add the entry to the collection.
collection->Add(entry);
// Create an array of type MessageQueuePermissionEntry.
array<MessageQueuePermissionEntry^>^ entries =
gcnew array<MessageQueuePermissionEntry^>(1);
// Copy the collection to index 0 of the array.
collection->CopyTo(entries, 0);
// Show that the array now contains the entry.
Console::WriteLine("entries[0].PermissionAccess: {0}",
entries[0]->PermissionAccess);
Console::WriteLine("entries[0].MachineName: {0}",
entries[0]->MachineName);
Console::WriteLine("entries[0].Label: {0}", entries[0]->Label);
Console::WriteLine("entries[0].Category: {0}",
entries[0]->Category);
queue->Close();
}
// Demonstrates:
// public Int32 IndexOf (MessageQueuePermissionEntry value)
public:
void IndexOfExample()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection^ collection =
permission->PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Add the entry to the collection.
collection->Add(entry);
// Display the index of the entry in the collection.
Console::WriteLine("Collection contains entry at index: {0}",
collection->IndexOf(entry));
queue->Close();
}
// Demonstrates:
// public Void Insert (Int32 index, MessageQueuePermissionEntry value)
public:
void InsertExample()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection^ collection =
permission->PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Add the entry to the collection.
collection->Add(entry);
// Create another new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ newEntry =
gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Send,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Insert the new entry into the collection before the original entry.
collection->Insert(0, newEntry);
queue->Close();
}
// Demonstrates:
// public MessageQueuePermissionEntry Item [Int32 index] { get; set; }
public:
void ItemExample()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection^ collection =
permission->PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Add the entry to the collection.
collection->Add(entry);
// Display the entry's properties, using the collection's Item
// accessor.
Console::WriteLine("collection[0].PermissionAccess: {0}",
collection[0]->PermissionAccess);
Console::WriteLine("collection[0].MachineName: {0}",
collection[0]->MachineName);
Console::WriteLine("collection[0].Label: {0}", collection[0]->Label);
Console::WriteLine("collection[0].Category: {0}",
collection[0]->Category);
queue->Close();
}
// Demonstrates:
// public Void Remove (MessageQueuePermissionEntry value)
public:
void RemoveExample()
{
// Connect to a queue on the local computer.
MessageQueue^ queue = gcnew MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission^ permission = gcnew MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection^ collection =
permission->PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry^ entry = gcnew MessageQueuePermissionEntry(
MessageQueuePermissionAccess::Receive,
queue->MachineName,
queue->Label,
queue->Category.ToString());
// Add the entry to the collection.
collection->Add(entry);
// Remove the entry from the collection.
collection->Remove(entry);
queue->Close();
}
};
// Creates a new queue.
void CreateQueue(String^ queuePath, bool transactional)
{
if (!MessageQueue::Exists(queuePath))
{
MessageQueue^ queue = MessageQueue::Create(queuePath, transactional);
queue->Close();
}
else
{
Console::WriteLine("{0} already exists.", queuePath);
}
}
int main()
{
// Create a new instance of the class.
MessageQueuePermissionEntryCollectionExample^ example =
gcnew MessageQueuePermissionEntryCollectionExample();
// Create a non-transactional queue on the local computer.
CreateQueue(".\\exampleQueue", false);
// Demonstrate MessageQueuePermissionEntryCollection's members.
example->AddExample();
example->AddRangeExample1();
example->AddRangeExample2();
example->ContainsExample();
example->CopyToExample();
example->IndexOfExample();
example->InsertExample();
example->ItemExample();
example->RemoveExample();
}
using System;
using System.Messaging;
public class MessageQueuePermissionEntryCollectionExample
{
public static void Main()
{
// Create a new instance of the class.
MessageQueuePermissionEntryCollectionExample example =
new MessageQueuePermissionEntryCollectionExample();
// Create a non-transactional queue on the local computer.
CreateQueue(".\\exampleQueue", false);
// Demonstrate MessageQueuePermissionEntryCollection's members.
example.AddExample();
example.AddRangeExample1();
example.AddRangeExample2();
example.ContainsExample();
example.CopyToExample();
example.IndexOfExample();
example.InsertExample();
example.ItemExample();
example.RemoveExample();
}
// Creates a new queue.
public static void CreateQueue(string queuePath, bool transactional)
{
if(!MessageQueue.Exists(queuePath))
{
MessageQueue.Create(queuePath, transactional);
}
else
{
Console.WriteLine(queuePath + " already exists.");
}
}
// Demonstrates:
// public Int32 Add (MessageQueuePermissionEntry value)
public void AddExample()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection collection =
permission.PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the entry to the collection.
collection.Add(entry);
}
// Demonstrates:
// public Void AddRange (MessageQueuePermissionEntry[] value)
public void AddRangeExample1()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection collection =
permission.PermissionEntries;
// Create an array of type MessageQueuePermissionEntry.
MessageQueuePermissionEntry[] entries =
new MessageQueuePermissionEntry[1];
// Create a new instance of MessageQueuePermissionEntry and place the
// instance in the array.
entries[0] = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the array to the collection.
collection.AddRange(entries);
}
// Demonstrates:
// public Void AddRange (MessageQueuePermissionEntryCollection value)
public void AddRangeExample2()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the entry to the permission's collection.
permission.PermissionEntries.Add(entry);
// Create another new instance of MessageQueuePermission.
MessageQueuePermission newPermission = new MessageQueuePermission();
// Use AddRange() to append the original permission's collection to the
// new permission's collection.
newPermission.PermissionEntries.AddRange(permission.PermissionEntries);
// To show that AddRange() copies collections by value and not by
// reference, we'll clear the original permission's collection, then
// display a count of how many entries are in the original permission's
// collection and how many entries are in the new permission's
// collection.
// Clear the original permission's collection.
permission.PermissionEntries.Clear();
// The original permission now contains 0 entries, but the new
// permission still contains 1 entry.
Console.WriteLine("Original permission contains {0} entries.",
permission.PermissionEntries.Count);
Console.WriteLine("New permission contains {0} entries.",
newPermission.PermissionEntries.Count);
}
// Demonstrates:
// public Boolean Contains (MessageQueuePermissionEntry value)
public void ContainsExample()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection collection =
permission.PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the entry to the collection.
collection.Add(entry);
// Show that the collection contains the entry.
Console.WriteLine("Collection contains first entry (true/false): {0}",
collection.Contains(entry));
// Create another new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry newEntry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Send,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Show that the collection does not contain the new entry.
Console.WriteLine("Collection contains second entry (true/false): {0}",
collection.Contains(newEntry));
}
// Demonstrates:
// public Void CopyTo (MessageQueuePermissionEntry[] array, Int32 index)
public void CopyToExample()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection collection =
permission.PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the entry to the collection.
collection.Add(entry);
// Create an array of type MessageQueuePermissionEntry.
MessageQueuePermissionEntry[] entries =
new MessageQueuePermissionEntry[1];
// Copy the collection to index 0 of the array.
collection.CopyTo(entries, 0);
// Show that the array now contains the entry.
Console.WriteLine("entries[0].PermissionAccess: {0}",
entries[0].PermissionAccess);
Console.WriteLine("entries[0].MachineName: {0}",
entries[0].MachineName);
Console.WriteLine("entries[0].Label: {0}", entries[0].Label);
Console.WriteLine("entries[0].Category: {0}",
entries[0].Category.ToString());
}
// Demonstrates:
// public Int32 IndexOf (MessageQueuePermissionEntry value)
public void IndexOfExample()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection collection =
permission.PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the entry to the collection.
collection.Add(entry);
// Display the index of the entry in the collection.
Console.WriteLine("Collection contains entry at index: {0}",
collection.IndexOf(entry));
}
// Demonstrates:
// public Void Insert (Int32 index, MessageQueuePermissionEntry value)
public void InsertExample()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection collection =
permission.PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the entry to the collection.
collection.Add(entry);
// Create another new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry newEntry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Send,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Insert the new entry into the collection before the original entry.
collection.Insert(0, newEntry);
}
// Demonstrates:
// public MessageQueuePermissionEntry Item [Int32 index] { get; set; }
public void ItemExample()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection collection =
permission.PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the entry to the collection.
collection.Add(entry);
// Display the entry's properties, using the collection's Item
// accessor.
Console.WriteLine("collection[0].PermissionAccess: {0}",
collection[0].PermissionAccess);
Console.WriteLine("collection[0].MachineName: {0}",
collection[0].MachineName);
Console.WriteLine("collection[0].Label: {0}", collection[0].Label);
Console.WriteLine("collection[0].Category: {0}",
collection[0].Category.ToString());
}
// Demonstrates:
// public Void Remove (MessageQueuePermissionEntry value)
public void RemoveExample()
{
// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");
// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission();
// Get an instance of MessageQueuePermissionEntryCollection from the
// permission's PermissionEntries property.
MessageQueuePermissionEntryCollection collection =
permission.PermissionEntries;
// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
MessageQueuePermissionAccess.Receive,
queue.MachineName,
queue.Label,
queue.Category.ToString());
// Add the entry to the collection.
collection.Add(entry);
// Remove the entry from the collection.
collection.Remove(entry);
}
}
Propriétés
Capacity |
Obtient ou définit le nombre d'éléments que CollectionBase peut contenir. (Hérité de CollectionBase) |
Count |
Obtient le nombre d'éléments contenus dans l'instance CollectionBase. Cette propriété ne peut pas être remplacée. (Hérité de CollectionBase) |
InnerList |
Obtient ArrayList contenant la liste des éléments dans l'instance de CollectionBase. (Hérité de CollectionBase) |
Item[Int32] |
Obtient ou définit l'objet à l'index spécifié. |
List |
Obtient IList contenant la liste des éléments dans l'instance de CollectionBase. (Hérité de CollectionBase) |
Méthodes
Add(MessageQueuePermissionEntry) |
Ajoute un MessageQueuePermissionEntry spécifié à cette collection. |
AddRange(MessageQueuePermissionEntry[]) |
Ajoute un ensemble d'entrées d'autorisation spécifiées à cette collection. |
AddRange(MessageQueuePermissionEntryCollection) |
Ajoute un ensemble d'entrées d'autorisation spécifiées à cette collection. |
Clear() |
Supprime tous les objets de l'instance de CollectionBase. Cette méthode ne peut pas être substituée. (Hérité de CollectionBase) |
Contains(MessageQueuePermissionEntry) |
Détermine si cette collection contient un MessageQueuePermissionEntry spécifié. |
CopyTo(MessageQueuePermissionEntry[], Int32) |
Copie les entrées d'autorisation de cette collection vers un tableau, en commençant à un index spécifique du tableau. |
Equals(Object) |
Détermine si l'objet spécifié est égal à l'objet actuel. (Hérité de Object) |
GetEnumerator() |
Retourne un énumérateur qui itère au sein de l'instance CollectionBase. (Hérité de CollectionBase) |
GetHashCode() |
Fait office de fonction de hachage par défaut. (Hérité de Object) |
GetType() |
Obtient le Type de l'instance actuelle. (Hérité de Object) |
IndexOf(MessageQueuePermissionEntry) |
Détermine l'index d'une entrée d'autorisation spécifiée dans cette collection. |
Insert(Int32, MessageQueuePermissionEntry) |
Insère une entrée d'autorisation dans cette collection à un index spécifié. |
MemberwiseClone() |
Crée une copie superficielle du Object actuel. (Hérité de Object) |
OnClear() |
Exécute des processus personnalisés supplémentaires après l'effacement du contenu de la collection. |
OnClearComplete() |
Exécute des processus personnalisés supplémentaires après l'effacement du contenu de l'instance de CollectionBase. (Hérité de CollectionBase) |
OnInsert(Int32, Object) |
Exécute les processus personnalisés supplémentaires avant l'insertion d'une nouvelle entrée d'autorisation dans la collection. |
OnInsertComplete(Int32, Object) |
Exécute les processus personnalisés supplémentaires après l'insertion d'un nouvel élément dans l'instance de CollectionBase. (Hérité de CollectionBase) |
OnRemove(Int32, Object) |
Exécute les processus personnalisés supplémentaires lors de la suppression d'une nouvelle entrée d'autorisation de la collection. |
OnRemoveComplete(Int32, Object) |
Exécute des processus personnalisés supplémentaires après la suppression d'un élément de l'instance de CollectionBase. (Hérité de CollectionBase) |
OnSet(Int32, Object, Object) |
Exécute des processus personnalisés supplémentaires avant la définition d'une valeur dans la collection. |
OnSetComplete(Int32, Object, Object) |
Exécute des processus personnalisés supplémentaires après la définition d'une valeur dans l'instance de CollectionBase. (Hérité de CollectionBase) |
OnValidate(Object) |
Exécute des processus personnalisés supplémentaires lors de la validation d'une valeur. (Hérité de CollectionBase) |
Remove(MessageQueuePermissionEntry) |
Supprime de cette collection une entrée d'autorisation spécifiée. |
RemoveAt(Int32) |
Supprime l'élément à l'index spécifié de l'instance de CollectionBase. Cette méthode n'est pas substituable. (Hérité de CollectionBase) |
ToString() |
Retourne une chaîne qui représente l'objet actuel. (Hérité de Object) |
Implémentations d’interfaces explicites
ICollection.CopyTo(Array, Int32) |
Copie l'ensemble de l'objet CollectionBase vers un objet Array unidimensionnel compatible, en commençant à l'index spécifié du tableau cible. (Hérité de CollectionBase) |
ICollection.IsSynchronized |
Obtient une valeur indiquant si l’accès à CollectionBase est synchronisé (thread-safe). (Hérité de CollectionBase) |
ICollection.SyncRoot |
Obtient un objet qui peut être utilisé pour synchroniser l’accès à CollectionBase. (Hérité de CollectionBase) |
IList.Add(Object) |
Ajoute un objet à la fin de la CollectionBase. (Hérité de CollectionBase) |
IList.Contains(Object) |
Détermine si CollectionBase contient un élément spécifique. (Hérité de CollectionBase) |
IList.IndexOf(Object) |
Recherche le Object spécifié et retourne l’index de base zéro de la première occurrence dans l’ensemble du CollectionBase. (Hérité de CollectionBase) |
IList.Insert(Int32, Object) |
Insère un élément dans la classe CollectionBase au niveau de l'index spécifié. (Hérité de CollectionBase) |
IList.IsFixedSize |
Obtient une valeur indiquant si CollectionBase est de taille fixe. (Hérité de CollectionBase) |
IList.IsReadOnly |
Obtient une valeur indiquant si CollectionBase est en lecture seule. (Hérité de CollectionBase) |
IList.Item[Int32] |
Obtient ou définit l'élément au niveau de l'index spécifié. (Hérité de CollectionBase) |
IList.Remove(Object) |
Supprime la première occurrence d’un objet spécifique de CollectionBase. (Hérité de CollectionBase) |
Méthodes d’extension
Cast<TResult>(IEnumerable) |
Effectue un cast des éléments d'un IEnumerable vers le type spécifié. |
OfType<TResult>(IEnumerable) |
Filtre les éléments d'un IEnumerable en fonction du type spécifié. |
AsParallel(IEnumerable) |
Active la parallélisation d'une requête. |
AsQueryable(IEnumerable) |
Convertit un IEnumerable en IQueryable. |