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
- ProgressBarAutomationPeer.cs
- SqlRecordBuffer.cs
- EntityKey.cs
- RTLAwareMessageBox.cs
- RegisteredArrayDeclaration.cs
- EdmItemCollection.OcAssemblyCache.cs
- ColorContextHelper.cs
- HttpModuleAction.cs
- DependencyPropertyValueSerializer.cs
- ApplicationGesture.cs
- CleanUpVirtualizedItemEventArgs.cs
- StrokeSerializer.cs
- HeaderedContentControl.cs
- WebPartsPersonalizationAuthorization.cs
- EventNotify.cs
- ContainerControl.cs
- Facet.cs
- LoadRetryHandler.cs
- Wow64ConfigurationLoader.cs
- XmlSchemaRedefine.cs
- HostedNamedPipeTransportManager.cs
- HiddenFieldPageStatePersister.cs
- XmlElementAttributes.cs
- FormViewUpdatedEventArgs.cs
- BindingsCollection.cs
- RegexGroup.cs
- FlatButtonAppearance.cs
- TaskFormBase.cs
- CachedFontFamily.cs
- HtmlTextArea.cs
- ExtensionFile.cs
- RectangleConverter.cs
- DataGridLinkButton.cs
- FormClosingEvent.cs
- EntityDataSourceContainerNameConverter.cs
- EtwTrackingBehavior.cs
- BulletChrome.cs
- StringToken.cs
- ParameterCollection.cs
- CheckedListBox.cs
- StorageMappingItemCollection.cs
- BuildProvider.cs
- SizeF.cs
- FontCacheUtil.cs
- FilterElement.cs
- SQLInt16Storage.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlHierarchyData.cs
- WinFormsSecurity.cs
- SafeArrayRankMismatchException.cs
- CharEntityEncoderFallback.cs
- MouseBinding.cs
- EventListenerClientSide.cs
- UserInitiatedNavigationPermission.cs
- ConfigsHelper.cs
- FormViewInsertedEventArgs.cs
- ImageListStreamer.cs
- PathNode.cs
- NavigationPropertyEmitter.cs
- ExtensionWindow.cs
- DataGridViewSelectedColumnCollection.cs
- StreamHelper.cs
- FormViewUpdateEventArgs.cs
- SizeAnimation.cs
- MethodImplAttribute.cs
- ConfigurationManagerInternalFactory.cs
- BufferManager.cs
- XMLSyntaxException.cs
- ItemAutomationPeer.cs
- CalendarAutoFormat.cs
- SerializerDescriptor.cs
- Int32AnimationUsingKeyFrames.cs
- ICollection.cs
- ManagementObjectSearcher.cs
- NodeInfo.cs
- HtmlToClrEventProxy.cs
- NetworkInterface.cs
- columnmapfactory.cs
- OrderPreservingPipeliningMergeHelper.cs
- OracleBoolean.cs
- ComponentChangingEvent.cs
- OpenTypeLayoutCache.cs
- SoapInteropTypes.cs
- XmlSchemaAttributeGroupRef.cs
- remotingproxy.cs
- RichTextBoxAutomationPeer.cs
- ChildDocumentBlock.cs
- DataGridViewHitTestInfo.cs
- XamlInt32CollectionSerializer.cs
- MeshGeometry3D.cs
- BorderGapMaskConverter.cs
- DirectoryNotFoundException.cs
- LinearKeyFrames.cs
- UnknownWrapper.cs
- ContentDesigner.cs
- AssemblySettingAttributes.cs
- NameObjectCollectionBase.cs
- DrawingAttributesDefaultValueFactory.cs
- OracleBFile.cs
- WindowsSlider.cs