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
- Journaling.cs
- AndMessageFilterTable.cs
- PeerInvitationResponse.cs
- HtmlLinkAdapter.cs
- OleDbWrapper.cs
- DataGridState.cs
- compensatingcollection.cs
- RedBlackList.cs
- StringReader.cs
- XamlFigureLengthSerializer.cs
- EventHandlerList.cs
- X509Certificate2.cs
- ImageClickEventArgs.cs
- TypeDependencyAttribute.cs
- RegistrySecurity.cs
- RegexInterpreter.cs
- ImportContext.cs
- ButtonFieldBase.cs
- StringStorage.cs
- Stroke.cs
- PolicyLevel.cs
- DBAsyncResult.cs
- LayoutDump.cs
- tooltip.cs
- ResourceReferenceExpression.cs
- XamlFilter.cs
- AutomationFocusChangedEventArgs.cs
- RotateTransform.cs
- ThemeInfoAttribute.cs
- HostingPreferredMapPath.cs
- ParameterElementCollection.cs
- QuestionEventArgs.cs
- ContainerFilterService.cs
- IWorkflowDebuggerService.cs
- XmlSignatureProperties.cs
- __Error.cs
- PrivilegeNotHeldException.cs
- SmiXetterAccessMap.cs
- ObjectConverter.cs
- Literal.cs
- ReliabilityContractAttribute.cs
- StatusBarPanel.cs
- AllowedAudienceUriElementCollection.cs
- DataObjectMethodAttribute.cs
- InvalidCastException.cs
- DATA_BLOB.cs
- ListItem.cs
- querybuilder.cs
- TreeNodeEventArgs.cs
- StylusButtonEventArgs.cs
- RtType.cs
- WinEventQueueItem.cs
- ProfileSection.cs
- DataGridViewCheckBoxCell.cs
- ClockGroup.cs
- DataExpression.cs
- Rect3DConverter.cs
- HttpConfigurationSystem.cs
- ToolTip.cs
- QEncodedStream.cs
- NamedPermissionSet.cs
- XPathQilFactory.cs
- Pen.cs
- EditorAttribute.cs
- CalendarDay.cs
- XmlChildNodes.cs
- ConfigurationStrings.cs
- ToolStripDropDown.cs
- Renderer.cs
- DataTemplateKey.cs
- CheckBoxFlatAdapter.cs
- QilReplaceVisitor.cs
- HttpChannelHelpers.cs
- OracleCommandSet.cs
- SQLGuid.cs
- XmlAttributeOverrides.cs
- TargetInvocationException.cs
- DoubleLinkListEnumerator.cs
- ScriptRegistrationManager.cs
- DataGridViewRow.cs
- BaseWebProxyFinder.cs
- CustomSignedXml.cs
- PersonalizablePropertyEntry.cs
- IOException.cs
- RegistryConfigurationProvider.cs
- activationcontext.cs
- HandlerMappingMemo.cs
- ContactManager.cs
- MetadataCache.cs
- XsdDuration.cs
- PrePostDescendentsWalker.cs
- AdapterUtil.cs
- SoapSchemaImporter.cs
- ProxyAttribute.cs
- ThreadExceptionDialog.cs
- OdbcError.cs
- NamespaceDecl.cs
- EtwTrace.cs
- UxThemeWrapper.cs
- WaitForChangedResult.cs