WebBaseEventCollection(ICollection) Construtor
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da WebBaseEventCollection classe.
public:
WebBaseEventCollection(System::Collections::ICollection ^ events);
public WebBaseEventCollection(System.Collections.ICollection events);
new System.Web.Management.WebBaseEventCollection : System.Collections.ICollection -> System.Web.Management.WebBaseEventCollection
Public Sub New (events As ICollection)
Parâmetros
- events
- ICollection
A coleção de WebBaseEvent objetos.
Exceções
events é null.
Exemplos
O seguinte exemplo de código mostra como usar este construtor.
// Create an event collection.
// Add to it the created simulatedEvents.
public static void AddEvents()
{
events =
new System.Web.Management.WebBaseEventCollection(
simulatedEvents);
}
' Create an event collection.
' Add to it the created simulatedEvents.
Public Shared Sub AddEvents()
events = _
New System.Web.Management.WebBaseEventCollection(simulatedEvents)
End Sub
Observações
O WebBaseEventCollection(ICollection) construtor permite-lhe criar uma instância da WebBaseEventCollection classe e inicializá-la com uma coleção de WebBaseEvent objetos.