Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

40 lines
1.3 KiB
C#

//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
using System.Configuration;
namespace System.IdentityModel.Configuration
{
public sealed partial class IssuerNameRegistryElement : ConfigurationElementInterceptor
{
public IssuerNameRegistryElement()
{
}
internal IssuerNameRegistryElement(string type)
{
Type = type;
}
/// <summary>
/// Special case: type may be omitted but inner configuration may be present
/// </summary>
internal bool IsConfigured
{
get
{
return (ElementInformation.Properties[ConfigurationStrings.Type].ValueOrigin != PropertyValueOrigin.Default) || ((ChildNodes != null) && (ChildNodes.Count > 0));
}
}
[ConfigurationProperty(ConfigurationStrings.Type, IsRequired = false, IsKey = false)]
[StringValidator(MinLength = 0)]
public string Type
{
get { return (string)this[ConfigurationStrings.Type]; }
set { this[ConfigurationStrings.Type] = value; }
}
}
}