Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyType.cs / 1 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyInformationCollection.cs
- SynchronizationContext.cs
- Metafile.cs
- EmptyQuery.cs
- mediaclock.cs
- PipelineModuleStepContainer.cs
- SqlBooleanizer.cs
- FlowDocumentView.cs
- MbpInfo.cs
- ScriptBehaviorDescriptor.cs
- EdgeModeValidation.cs
- OleDbConnectionInternal.cs
- AlphabetConverter.cs
- FilterElement.cs
- PenCursorManager.cs
- DataGridColumn.cs
- DocumentEventArgs.cs
- XPathNode.cs
- DataGridViewColumnStateChangedEventArgs.cs
- LiteralText.cs
- StyleConverter.cs
- CodeAccessPermission.cs
- EdmComplexTypeAttribute.cs
- CommonDialog.cs
- ComponentEditorForm.cs
- XmlWriterSettings.cs
- DefaultBinder.cs
- SplineQuaternionKeyFrame.cs
- TextOptionsInternal.cs
- MatrixCamera.cs
- BindingListCollectionView.cs
- OracleRowUpdatingEventArgs.cs
- SettingsAttributes.cs
- DynamicValidatorEventArgs.cs
- ProgramPublisher.cs
- DiscreteKeyFrames.cs
- CompositeActivityTypeDescriptorProvider.cs
- AmbientProperties.cs
- NotSupportedException.cs
- TriState.cs
- TransformerInfoCollection.cs
- VersionPair.cs
- PropertyDescriptorGridEntry.cs
- XamlPoint3DCollectionSerializer.cs
- ProtocolsConfigurationEntry.cs
- BooleanAnimationUsingKeyFrames.cs
- UnsafeNativeMethodsTablet.cs
- TableLayoutSettings.cs
- ErrorFormatter.cs
- Pen.cs
- CompilerInfo.cs
- WebPartConnectionsConfigureVerb.cs
- TypePresenter.xaml.cs
- Registry.cs
- ByteStreamGeometryContext.cs
- CodeIdentifier.cs
- ScrollContentPresenter.cs
- DataServiceContext.cs
- PeerObject.cs
- JsonReaderDelegator.cs
- LifetimeServices.cs
- VariableAction.cs
- PersistStreamTypeWrapper.cs
- ExternalCalls.cs
- InternalRelationshipCollection.cs
- CheckBoxRenderer.cs
- UmAlQuraCalendar.cs
- DataGridViewCellConverter.cs
- UnsafeNativeMethodsPenimc.cs
- XmlComment.cs
- StringCollection.cs
- QilName.cs
- IdentityManager.cs
- TextEndOfLine.cs
- _PooledStream.cs
- InstalledFontCollection.cs
- XmlDataImplementation.cs
- TableLayout.cs
- IntellisenseTextBox.designer.cs
- MimeMapping.cs
- PanelDesigner.cs
- SqlDataSourceView.cs
- EntitySqlQueryCacheKey.cs
- Assembly.cs
- DynamicAttribute.cs
- ChangeNode.cs
- ComboBoxItem.cs
- XmlStringTable.cs
- DebugHandleTracker.cs
- ExpressionPrefixAttribute.cs
- SvcMapFileLoader.cs
- CodeTypeOfExpression.cs
- BoundColumn.cs
- GridViewDeleteEventArgs.cs
- TextElementCollection.cs
- TypeNameConverter.cs
- ExpressionBuilderCollection.cs
- TextEditorMouse.cs
- HotSpot.cs
- EventDescriptor.cs