Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyUsage.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeRegistryKey.cs
- InProcStateClientManager.cs
- AutoGeneratedFieldProperties.cs
- SmtpMail.cs
- PolicyStatement.cs
- NameValueCollection.cs
- AppearanceEditorPart.cs
- control.ime.cs
- SingleQueryOperator.cs
- ConstNode.cs
- unsafenativemethodsother.cs
- ControlOperationInvoker.cs
- ValidatorUtils.cs
- DataPointer.cs
- httpstaticobjectscollection.cs
- SQLBytes.cs
- DotExpr.cs
- APCustomTypeDescriptor.cs
- FormCollection.cs
- MetaChildrenColumn.cs
- PluralizationServiceUtil.cs
- ConfigurationSettings.cs
- VerifyHashRequest.cs
- ScrollContentPresenter.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- CorrelationService.cs
- NativeMethods.cs
- PopupRootAutomationPeer.cs
- DPCustomTypeDescriptor.cs
- TdsEnums.cs
- GeometryHitTestParameters.cs
- COM2ComponentEditor.cs
- ObjRef.cs
- AuthorizationPolicyTypeElement.cs
- NetStream.cs
- SslStream.cs
- CalloutQueueItem.cs
- TextTreeInsertUndoUnit.cs
- XmlElementAttribute.cs
- ThaiBuddhistCalendar.cs
- ParserStack.cs
- EntityDataSourceColumn.cs
- GridViewEditEventArgs.cs
- Listbox.cs
- DecimalConstantAttribute.cs
- ResourcePermissionBaseEntry.cs
- ItemList.cs
- Compilation.cs
- ModelVisual3D.cs
- MenuItemStyle.cs
- QuinticEase.cs
- Baml2006ReaderFrame.cs
- BinaryObjectReader.cs
- PersonalizationState.cs
- DateTimeUtil.cs
- SelectionProcessor.cs
- SearchExpression.cs
- DeclarationUpdate.cs
- PagerSettings.cs
- WebPartMenuStyle.cs
- CodePropertyReferenceExpression.cs
- EventListenerClientSide.cs
- WorkingDirectoryEditor.cs
- Trigger.cs
- PersonalizationStateInfoCollection.cs
- DesignerEditorPartChrome.cs
- PageThemeParser.cs
- RealProxy.cs
- ExcCanonicalXml.cs
- Transform.cs
- TableLayoutPanel.cs
- CachedPathData.cs
- CacheSection.cs
- HTMLTagNameToTypeMapper.cs
- WaitHandle.cs
- TypeInitializationException.cs
- ToolBar.cs
- HtmlProps.cs
- EncryptedKey.cs
- OrCondition.cs
- FlowDocumentReader.cs
- HandlerFactoryWrapper.cs
- MaskedTextProvider.cs
- CFStream.cs
- DataSourceXmlSerializationAttribute.cs
- UserPersonalizationStateInfo.cs
- WrappedKeySecurityToken.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DocumentSequence.cs
- XmlnsDictionary.cs
- ScrollItemProviderWrapper.cs
- ExpandCollapsePattern.cs
- xdrvalidator.cs
- _KerberosClient.cs
- BooleanToVisibilityConverter.cs
- AppDomainProtocolHandler.cs
- XsltSettings.cs
- TimerElapsedEvenArgs.cs
- DeclarativeCatalogPart.cs
- RequiredFieldValidator.cs