Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyType.cs / 1305376 / SecurityKeyType.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.ComponentModel; using System.Diagnostics; public enum SecurityKeyType { SymmetricKey, AsymmetricKey, BearerKey } static class SecurityKeyTypeHelper { internal static bool IsDefined(SecurityKeyType value) { return (value == SecurityKeyType.SymmetricKey || value == SecurityKeyType.AsymmetricKey || value == SecurityKeyType.BearerKey); } internal static void Validate(SecurityKeyType value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(SecurityKeyType))); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.ComponentModel; using System.Diagnostics; public enum SecurityKeyType { SymmetricKey, AsymmetricKey, BearerKey } static class SecurityKeyTypeHelper { internal static bool IsDefined(SecurityKeyType value) { return (value == SecurityKeyType.SymmetricKey || value == SecurityKeyType.AsymmetricKey || value == SecurityKeyType.BearerKey); } internal static void Validate(SecurityKeyType value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(SecurityKeyType))); } } } } // 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
- CacheMemory.cs
- brushes.cs
- MetadataItemEmitter.cs
- ScriptReferenceEventArgs.cs
- _FtpDataStream.cs
- ImmutableObjectAttribute.cs
- CornerRadius.cs
- InkCanvas.cs
- BaseCodePageEncoding.cs
- TemplateParser.cs
- MediaPlayerState.cs
- DoubleLinkListEnumerator.cs
- regiisutil.cs
- SvcMapFileSerializer.cs
- PagerStyle.cs
- EntityDataReader.cs
- RsaSecurityToken.cs
- StatusBar.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- UpWmlMobileTextWriter.cs
- NameSpaceEvent.cs
- MarkupObject.cs
- odbcmetadatacollectionnames.cs
- ClientProxyGenerator.cs
- MultiAsyncResult.cs
- PowerModeChangedEventArgs.cs
- RpcCryptoContext.cs
- SecurityTokenRequirement.cs
- ImpersonationContext.cs
- DiscreteKeyFrames.cs
- ClientBuildManager.cs
- Drawing.cs
- UpdatePanelTrigger.cs
- PtsContext.cs
- DesignDataSource.cs
- SoapProtocolImporter.cs
- Context.cs
- PrimitiveXmlSerializers.cs
- XmlEntityReference.cs
- SafeLocalMemHandle.cs
- ReadOnlyHierarchicalDataSource.cs
- XmlSchemaImport.cs
- SqlMethods.cs
- ThreadInterruptedException.cs
- MediaEntryAttribute.cs
- SafeNativeMethodsOther.cs
- GetPageNumberCompletedEventArgs.cs
- UnsafePeerToPeerMethods.cs
- DoubleStorage.cs
- Int32Rect.cs
- HandledEventArgs.cs
- ResetableIterator.cs
- SafeNativeMethodsOther.cs
- StructuredProperty.cs
- MatrixAnimationUsingPath.cs
- TdsParserHelperClasses.cs
- ListViewTableCell.cs
- FigureHelper.cs
- TypeReference.cs
- FormClosingEvent.cs
- SudsParser.cs
- DataGridViewColumnStateChangedEventArgs.cs
- SecurityTokenValidationException.cs
- TextAnchor.cs
- CodeExporter.cs
- SecurityKeyIdentifierClause.cs
- CopyNamespacesAction.cs
- ActiveDocumentEvent.cs
- ProcessingInstructionAction.cs
- ObjectStateFormatter.cs
- Internal.cs
- Metafile.cs
- DbQueryCommandTree.cs
- ListViewAutomationPeer.cs
- MailSettingsSection.cs
- ImageMetadata.cs
- CommonDialog.cs
- XmlCustomFormatter.cs
- CustomTokenProvider.cs
- Oid.cs
- SqlDataSourceConfigureFilterForm.cs
- DeclarationUpdate.cs
- DataServiceHost.cs
- DataGridViewAdvancedBorderStyle.cs
- Queue.cs
- DesignerActionList.cs
- StructuralObject.cs
- BuildProviderUtils.cs
- EmptyControlCollection.cs
- HMACSHA384.cs
- GiveFeedbackEventArgs.cs
- RefExpr.cs
- RelationshipConstraintValidator.cs
- ECDsa.cs
- ListMarkerLine.cs
- AcceleratedTokenAuthenticator.cs
- SizeF.cs
- DPTypeDescriptorContext.cs
- EncodingTable.cs
- StoreItemCollection.Loader.cs