e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
40 lines
1.3 KiB
C#
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; }
|
|
}
|
|
}
|
|
}
|