Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / Tokens / X509KeyIdentifierClauseType.cs / 1 / X509KeyIdentifierClauseType.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security.Tokens { using System.ComponentModel; public enum X509KeyIdentifierClauseType { Any = 0, Thumbprint = 1, IssuerSerial = 2, SubjectKeyIdentifier = 3, RawDataKeyIdentifier = 4 } static class X509SecurityTokenReferenceStyleHelper { public static bool IsDefined(X509KeyIdentifierClauseType value) { return (value == X509KeyIdentifierClauseType.Any ||value == X509KeyIdentifierClauseType.IssuerSerial || value == X509KeyIdentifierClauseType.SubjectKeyIdentifier || value == X509KeyIdentifierClauseType.Thumbprint || value == X509KeyIdentifierClauseType.RawDataKeyIdentifier); } public static void Validate(X509KeyIdentifierClauseType value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(X509KeyIdentifierClauseType))); } } } } // 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
- CommonGetThemePartSize.cs
- RemoteWebConfigurationHostStream.cs
- Behavior.cs
- AmbientValueAttribute.cs
- ContextMenuStrip.cs
- CodeChecksumPragma.cs
- ConnectionPoint.cs
- FigureParaClient.cs
- InputBinding.cs
- DataGridViewRowCollection.cs
- ProcessModule.cs
- ColumnClickEvent.cs
- SourceFileInfo.cs
- DataPagerFieldItem.cs
- EventlogProvider.cs
- ResourceDescriptionAttribute.cs
- StorageSetMapping.cs
- MiniModule.cs
- XamlPoint3DCollectionSerializer.cs
- InvalidPrinterException.cs
- Camera.cs
- RadioButtonFlatAdapter.cs
- Cloud.cs
- PatternMatcher.cs
- NameSpaceEvent.cs
- EntityViewGenerationConstants.cs
- TypeNameParser.cs
- SelectionRange.cs
- DSACryptoServiceProvider.cs
- EntityModelBuildProvider.cs
- StrongNameKeyPair.cs
- Control.cs
- QilTernary.cs
- QuotedStringWriteStateInfo.cs
- EntityExpressionVisitor.cs
- TransformGroup.cs
- ChannelCacheDefaults.cs
- SafeCryptContextHandle.cs
- Decimal.cs
- TimeStampChecker.cs
- CultureData.cs
- LayoutTableCell.cs
- TiffBitmapDecoder.cs
- ControlCachePolicy.cs
- HttpAsyncResult.cs
- OperationAbortedException.cs
- WebPartVerbCollection.cs
- Label.cs
- PathFigureCollectionConverter.cs
- ScrollBar.cs
- CurrentChangedEventManager.cs
- DPTypeDescriptorContext.cs
- _ConnectStream.cs
- ToolStripPanel.cs
- FormsAuthenticationCredentials.cs
- pingexception.cs
- AspNetSynchronizationContext.cs
- HtmlInputImage.cs
- XPathSelectionIterator.cs
- MissingFieldException.cs
- MetadataItem_Static.cs
- WinFormsComponentEditor.cs
- DataGridTextBox.cs
- ListBox.cs
- XmlSchemaElement.cs
- Part.cs
- EventMappingSettings.cs
- GeneralTransform3DGroup.cs
- CounterCreationDataCollection.cs
- MissingMemberException.cs
- RightsManagementEncryptionTransform.cs
- DataObject.cs
- ScrollChrome.cs
- FrameDimension.cs
- SQLDouble.cs
- ValueExpressions.cs
- Run.cs
- MSAAEventDispatcher.cs
- Comparer.cs
- ListBase.cs
- DataColumnPropertyDescriptor.cs
- TextRunTypographyProperties.cs
- DebugViewWriter.cs
- SqlRowUpdatingEvent.cs
- CheckBoxField.cs
- LOSFormatter.cs
- NullableDecimalAverageAggregationOperator.cs
- RsaKeyGen.cs
- FormatPage.cs
- XsdDateTime.cs
- BookmarkUndoUnit.cs
- HopperCache.cs
- UnsafeNativeMethods.cs
- SharedPersonalizationStateInfo.cs
- XmlDocumentSerializer.cs
- ConstructorNeedsTagAttribute.cs
- ExternalFile.cs
- WmlFormAdapter.cs
- ExclusiveTcpTransportManager.cs
- DataBinder.cs