Table of Contents

Class SnmpCommunityCollection

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a collection of SNMP communities.

public class SnmpCommunityCollection : Collection<SnmpCommunity>, IList<SnmpCommunity>, ICollection<SnmpCommunity>, IList, ICollection, IReadOnlyList<SnmpCommunity>, IReadOnlyCollection<SnmpCommunity>, IEnumerable<SnmpCommunity>, IEnumerable
Inheritance
SnmpCommunityCollection
Implements
Inherited Members

Constructors

SnmpCommunityCollection()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.SnmpCommunityCollection class.

public SnmpCommunityCollection()

Methods

Exists(string)

Determines whether a CENTREL.XIA.Configuration.Types.SNMPCommunity with the specified community name is found in the collection.

public bool Exists(string name)

Parameters

name string

The name of the CENTREL.XIA.Configuration.Types.SNMPCommunity to locate.

Returns

bool

A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.SNMPCommunity with the specified community name is found in the collection.

FindByName(string)

Returns the CENTREL.XIA.Configuration.Types.SNMPCommunity with the specified name, or null if no CENTREL.XIA.Configuration.Types.SNMPCommunity with that name is found.

public SnmpCommunity FindByName(string name)

Parameters

name string

The name of the CENTREL.XIA.Configuration.Types.SNMPCommunity to locate.

Returns

SnmpCommunity

The CENTREL.XIA.Configuration.Types.SNMPCommunity with the specified name.

Sort()

Sorts the values in the collection.

public void Sort()

ToShortString()

Returns the SNMP communities names, one per line.

public string ToShortString()

Returns

string

The SNMP community names.

ToString()

Returns the SNMP communities as a human readable string, one per line, in the format "CommunityName [Type]".

public override string ToString()

Returns

string

The SNMP communities as a human readable string.