Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / Tokens / ClaimTypeRequirement.cs / 1 / ClaimTypeRequirement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Security.Tokens
{
public class ClaimTypeRequirement
{
internal const bool DefaultIsOptional = false;
string claimType;
bool isOptional;
public ClaimTypeRequirement(string claimType)
: this(claimType, DefaultIsOptional)
{
}
public ClaimTypeRequirement(string claimType, bool isOptional)
{
if (claimType == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("claimType");
}
if (claimType.Length <= 0)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claimType", SR.GetString(SR.ClaimTypeCannotBeEmpty));
}
this.claimType = claimType;
this.isOptional = isOptional;
}
public string ClaimType
{
get { return this.claimType; }
}
public bool IsOptional
{
get { return this.isOptional; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceDisplayNameAttribute.cs
- ColumnHeaderConverter.cs
- ConnectionStringEditor.cs
- XmlBinaryReader.cs
- RichListBox.cs
- QilReplaceVisitor.cs
- DefaultValueTypeConverter.cs
- X509SecurityTokenAuthenticator.cs
- PerformanceCounterPermissionEntry.cs
- AppDomainUnloadedException.cs
- TcpPortSharing.cs
- XmlSortKey.cs
- CryptoApi.cs
- DbModificationCommandTree.cs
- Container.cs
- AuthenticationConfig.cs
- PointConverter.cs
- Globals.cs
- FixedPage.cs
- IndentTextWriter.cs
- CompilationRelaxations.cs
- UnsafeNativeMethods.cs
- HttpGetServerProtocol.cs
- UrlPath.cs
- NumberFormatter.cs
- Viewport3DAutomationPeer.cs
- PropertyTab.cs
- PromptStyle.cs
- UIElement.cs
- PersonalizationProviderHelper.cs
- AppendHelper.cs
- Currency.cs
- ComplexBindingPropertiesAttribute.cs
- ObjectPropertyMapping.cs
- InheritanceAttribute.cs
- Int64KeyFrameCollection.cs
- IdnMapping.cs
- DynamicMetaObject.cs
- CryptoApi.cs
- ToolStripLabel.cs
- CreateUserWizard.cs
- SEHException.cs
- SqlCacheDependencyDatabaseCollection.cs
- ThemeDirectoryCompiler.cs
- DateTimeOffsetAdapter.cs
- SortDescriptionCollection.cs
- ToolStripItemEventArgs.cs
- AssemblyInfo.cs
- GeometryValueSerializer.cs
- ClientTargetSection.cs
- XPathAxisIterator.cs
- TypedReference.cs
- DataListCommandEventArgs.cs
- BindableTemplateBuilder.cs
- DateTimeUtil.cs
- SafeLocalAllocation.cs
- X509IssuerSerialKeyIdentifierClause.cs
- MetafileHeaderWmf.cs
- DataBoundControlHelper.cs
- SqlGatherConsumedAliases.cs
- CheckBoxStandardAdapter.cs
- DataContractSerializerMessageContractImporter.cs
- PropertyRecord.cs
- NumericUpDown.cs
- BoundField.cs
- XmlCharacterData.cs
- XmlTextReaderImplHelpers.cs
- AlternateViewCollection.cs
- SeekStoryboard.cs
- DynamicValueConverter.cs
- KeyedCollection.cs
- HtmlTableRowCollection.cs
- BoundPropertyEntry.cs
- TextBoxAutomationPeer.cs
- StylusPointPropertyUnit.cs
- UnhandledExceptionEventArgs.cs
- SchemaImporter.cs
- DriveNotFoundException.cs
- ConstructorNeedsTagAttribute.cs
- StringUtil.cs
- RegexWriter.cs
- AssemblyInfo.cs
- ResourceExpression.cs
- Repeater.cs
- XPathNodeIterator.cs
- TextMetrics.cs
- TextDecoration.cs
- DescendentsWalkerBase.cs
- MessageQueue.cs
- DiscreteKeyFrames.cs
- UIElement3DAutomationPeer.cs
- SafeNativeMethods.cs
- DBSchemaTable.cs
- GeneratedContractType.cs
- FtpWebResponse.cs
- NumericUpDownAccelerationCollection.cs
- PageTheme.cs
- KeyMatchBuilder.cs
- OutputCacheSettings.cs
- IIS7ConfigurationLoader.cs