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
- ActivityDesigner.cs
- ContextBase.cs
- BezierSegment.cs
- TextServicesHost.cs
- GuidConverter.cs
- SmtpFailedRecipientException.cs
- ShaderRenderModeValidation.cs
- BamlRecords.cs
- BitmapEffectDrawingContent.cs
- DispatcherFrame.cs
- PageTheme.cs
- ProxyHwnd.cs
- RepeaterItem.cs
- Matrix3DStack.cs
- PerformanceCountersElement.cs
- ObjectDataSourceView.cs
- InstanceCreationEditor.cs
- DataGridCaption.cs
- PropertyGridDesigner.cs
- SoapBinding.cs
- ListItemCollection.cs
- DataColumnMapping.cs
- TdsParserHelperClasses.cs
- TextServicesCompartmentContext.cs
- FixedStringLookup.cs
- SmiRequestExecutor.cs
- SQLInt16Storage.cs
- DataContractAttribute.cs
- SmiEventStream.cs
- HMACSHA512.cs
- AnimationTimeline.cs
- SQLInt64Storage.cs
- Rfc4050KeyFormatter.cs
- SoapTypeAttribute.cs
- TextServicesProperty.cs
- Normalization.cs
- WindowProviderWrapper.cs
- FlatButtonAppearance.cs
- CombinedHttpChannel.cs
- EntityDataSource.cs
- UnknownWrapper.cs
- TextEditorLists.cs
- SerializationAttributes.cs
- Debug.cs
- XpsFixedPageReaderWriter.cs
- PropertyPathWorker.cs
- SqlBuffer.cs
- XsdDataContractExporter.cs
- RegisterInfo.cs
- Drawing.cs
- VectorAnimationUsingKeyFrames.cs
- ProviderCollection.cs
- ScrollableControl.cs
- Attachment.cs
- Profiler.cs
- AspCompat.cs
- WSTrust.cs
- Rect3D.cs
- BaseCAMarshaler.cs
- PasswordDeriveBytes.cs
- WorkflowApplicationCompletedEventArgs.cs
- ItemsChangedEventArgs.cs
- ArrangedElementCollection.cs
- BuildProviderUtils.cs
- AbstractExpressions.cs
- FixedSOMPageConstructor.cs
- ParentControlDesigner.cs
- TextPattern.cs
- DesignerVerbToolStripMenuItem.cs
- CompoundFileStreamReference.cs
- ReadOnlyDataSource.cs
- WebPartZoneCollection.cs
- CreateParams.cs
- GradientBrush.cs
- GridEntry.cs
- DbProviderServices.cs
- SimpleHandlerFactory.cs
- SystemResourceKey.cs
- ValidationRule.cs
- TdsParserStateObject.cs
- ListBoxChrome.cs
- MatrixTransform3D.cs
- Scripts.cs
- Bind.cs
- DocumentReferenceCollection.cs
- HMACSHA512.cs
- EllipticalNodeOperations.cs
- AdornerDecorator.cs
- SourceLineInfo.cs
- DesignerMetadata.cs
- ResourcePart.cs
- EntityDataSourceEntitySetNameItem.cs
- SecurityUniqueId.cs
- InfoCardProofToken.cs
- TableCell.cs
- MetadataSection.cs
- BuildProvider.cs
- FastEncoder.cs
- TextServicesContext.cs
- GridViewDeleteEventArgs.cs