//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ using System; using System.Collections.Generic; using System.Text; using System.Configuration; namespace System.IdentityModel.Configuration { #pragma warning disable 1591 /// /// Manages the configuration of an audience uri element within the audienceUris /// configuration collection. /// public sealed partial class AudienceUriElement : ConfigurationElement { const string DefaultValue = " "; [ConfigurationProperty(ConfigurationStrings.Value, IsRequired = true, DefaultValue = DefaultValue, IsKey = true)] [StringValidator(MinLength = 1)] public string Value { get { return (string)this[ConfigurationStrings.Value]; } set { this[ConfigurationStrings.Value] = value; } } /// /// Returns a value indicating whether this element has been configured with non-default values. /// internal bool IsConfigured { get { return ElementInformation.Properties[ConfigurationStrings.Value].ValueOrigin != PropertyValueOrigin.Default; } } } #pragma warning restore 1591 }