Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyUsage.cs / 1305376 / SecurityKeyUsage.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.ComponentModel; using System.Diagnostics; public enum SecurityKeyUsage { Exchange, Signature } static class SecurityKeyUsageHelper { internal static bool IsDefined(SecurityKeyUsage value) { return (value == SecurityKeyUsage.Exchange || value == SecurityKeyUsage.Signature); } internal static void Validate(SecurityKeyUsage value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(SecurityKeyUsage))); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GatewayDefinition.cs
- ParentQuery.cs
- EditorZoneBase.cs
- MailMessageEventArgs.cs
- Typeface.cs
- StorageMappingItemCollection.cs
- FileStream.cs
- WindowsComboBox.cs
- QueryCacheManager.cs
- Label.cs
- FixedTextPointer.cs
- UniqueEventHelper.cs
- InstanceDataCollection.cs
- SplayTreeNode.cs
- _TLSstream.cs
- future.cs
- CodeGeneratorOptions.cs
- LineGeometry.cs
- WebBrowserNavigatedEventHandler.cs
- WpfKnownMember.cs
- CaseStatement.cs
- GrammarBuilderPhrase.cs
- PreviewPageInfo.cs
- XsdDataContractExporter.cs
- ImageClickEventArgs.cs
- ConditionCollection.cs
- HostingPreferredMapPath.cs
- OrderablePartitioner.cs
- ValidationSummaryDesigner.cs
- PaintEvent.cs
- HttpCachePolicyElement.cs
- ErrorInfoXmlDocument.cs
- WhitespaceRuleReader.cs
- GenericWebPart.cs
- Literal.cs
- QueryNode.cs
- ADConnectionHelper.cs
- ISFClipboardData.cs
- DesignerCommandSet.cs
- TemplateControl.cs
- SQLDoubleStorage.cs
- VisualStyleElement.cs
- ExtentCqlBlock.cs
- IsolatedStoragePermission.cs
- ControllableStoryboardAction.cs
- InternalConfigEventArgs.cs
- BrushMappingModeValidation.cs
- CommandBindingCollection.cs
- Win32SafeHandles.cs
- XmlBufferedByteStreamReader.cs
- SystemSounds.cs
- ServiceOperationInfoTypeConverter.cs
- BinaryWriter.cs
- ObjectDataSourceMethodEventArgs.cs
- MappingException.cs
- ArgumentException.cs
- DataDocumentXPathNavigator.cs
- SerializeAbsoluteContext.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ValidationSummary.cs
- CodeIndexerExpression.cs
- ReferentialConstraint.cs
- MultiTouchSystemGestureLogic.cs
- DataSourceHelper.cs
- CodeRegionDirective.cs
- QueryAccessibilityHelpEvent.cs
- LogLogRecordEnumerator.cs
- Activator.cs
- Certificate.cs
- PublisherIdentityPermission.cs
- WebHttpSecurityElement.cs
- EditorAttribute.cs
- ConfigXmlCDataSection.cs
- Configuration.cs
- DataGridViewRowPostPaintEventArgs.cs
- Int16KeyFrameCollection.cs
- SerialPort.cs
- DeclarationUpdate.cs
- FixedFlowMap.cs
- ComponentChangedEvent.cs
- XmlSerializerAssemblyAttribute.cs
- InvalidProgramException.cs
- WebHttpBindingCollectionElement.cs
- RuleCache.cs
- ToolboxDataAttribute.cs
- OLEDB_Enum.cs
- SequenceDesignerAccessibleObject.cs
- SortableBindingList.cs
- Transform3DCollection.cs
- FacetChecker.cs
- ProtocolsConfigurationEntry.cs
- ECDsaCng.cs
- CellIdBoolean.cs
- UpdateRecord.cs
- QueryOutputWriter.cs
- StrokeFIndices.cs
- XsdValidatingReader.cs
- ValidationErrorInfo.cs
- DataListCommandEventArgs.cs
- Int32RectConverter.cs