Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ControlPaint.cs
- SqlXmlStorage.cs
- Membership.cs
- StringHandle.cs
- _ListenerRequestStream.cs
- ExpandedWrapper.cs
- DataSourceXmlClassAttribute.cs
- ListView.cs
- MimeReflector.cs
- LambdaCompiler.Statements.cs
- CodeTypeReferenceExpression.cs
- AsyncWaitHandle.cs
- ScrollableControl.cs
- RelationshipConverter.cs
- TagPrefixCollection.cs
- LayoutInformation.cs
- ChtmlTextWriter.cs
- DbParameterCollectionHelper.cs
- ASCIIEncoding.cs
- LoginName.cs
- ListDictionaryInternal.cs
- BrowserCapabilitiesFactoryBase.cs
- LinqDataSourceStatusEventArgs.cs
- ErrorCodes.cs
- ExpressionConverter.cs
- SqlCrossApplyToCrossJoin.cs
- StatusBarPanelClickEvent.cs
- BaseParser.cs
- Classification.cs
- TreeNode.cs
- IBuiltInEvidence.cs
- ToolStripItem.cs
- ExpressionBuilder.cs
- UIElementParaClient.cs
- DbMetaDataCollectionNames.cs
- Single.cs
- NullableFloatSumAggregationOperator.cs
- Window.cs
- TextSelectionProcessor.cs
- WebException.cs
- XamlInt32CollectionSerializer.cs
- RolePrincipal.cs
- HttpClientCertificate.cs
- SerializableAttribute.cs
- HttpResponseHeader.cs
- TextElementAutomationPeer.cs
- StrongNamePublicKeyBlob.cs
- TimelineGroup.cs
- PropertyGridView.cs
- TransformerTypeCollection.cs
- List.cs
- PackWebRequestFactory.cs
- WebBrowser.cs
- ExpressionBinding.cs
- Quad.cs
- FormsAuthenticationCredentials.cs
- TreeViewImageIndexConverter.cs
- MultipartContentParser.cs
- CodeSnippetTypeMember.cs
- TraceXPathNavigator.cs
- TableLayoutPanelCellPosition.cs
- TextParaLineResult.cs
- PassportAuthentication.cs
- XamlBrushSerializer.cs
- SoapCodeExporter.cs
- EncodingInfo.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ControlBindingsCollection.cs
- AutomationEventArgs.cs
- PropertyValidationContext.cs
- DesignerAdapterAttribute.cs
- Math.cs
- DSACryptoServiceProvider.cs
- CodeTypeConstructor.cs
- BigInt.cs
- DesignBindingConverter.cs
- HwndKeyboardInputProvider.cs
- XmlNodeComparer.cs
- DockEditor.cs
- cookieexception.cs
- WebPartVerb.cs
- FontClient.cs
- HttpCachePolicyBase.cs
- PrivateFontCollection.cs
- MetadataSerializer.cs
- DataGridViewTextBoxCell.cs
- TagPrefixAttribute.cs
- RelOps.cs
- ScriptServiceAttribute.cs
- DefaultValueTypeConverter.cs
- RuntimeConfigLKG.cs
- ReturnValue.cs
- ResetableIterator.cs
- ConstraintEnumerator.cs
- DynamicEntity.cs
- TraceInternal.cs
- DBSqlParserColumn.cs
- DataGridPagerStyle.cs
- safemediahandle.cs
- DataGridViewAutoSizeModeEventArgs.cs