|
using System.Configuration;
using System.Collections.Generic;
namespace Certificate.Configuration
{
[ConfigurationCollection(typeof(TrustedCertificateInfo), CollectionType = ConfigurationElementCollectionType.BasicMapAlternate)]
public class TrustedCertificateInfoCollection : ConfigurationElementCollection
{
internal const string itemPropertyName = "certificateInfo";
public override ConfigurationElementCollectionType CollectionType
{
get { return ConfigurationElementCollectionType.BasicMapAlternate; }
}
protected override string ElementName
{
get { return itemPropertyName; }
}
protected override bool IsElementName(string elementName)
{
return (elementName == itemPropertyName);
}
protected override object GetElementKey(ConfigurationElement element)
{
return (TrustedCertificateInfo)element;
}
protected override ConfigurationElement CreateNewElement()
{
return new TrustedCertificateInfo();
}
public override bool IsReadOnly()
{
return false;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.