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
- ReverseInheritProperty.cs
- Avt.cs
- XhtmlConformanceSection.cs
- WebUtil.cs
- X509Utils.cs
- RegexInterpreter.cs
- TextParagraphView.cs
- ThrowHelper.cs
- BaseParser.cs
- XmlEventCache.cs
- QueryContinueDragEventArgs.cs
- PipeStream.cs
- IconBitmapDecoder.cs
- DependentList.cs
- DockPanel.cs
- _ShellExpression.cs
- ChannelBuilder.cs
- ContextMenu.cs
- MexHttpsBindingCollectionElement.cs
- SupportingTokenSpecification.cs
- SecurityCapabilities.cs
- NullableFloatMinMaxAggregationOperator.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- CaseCqlBlock.cs
- VScrollProperties.cs
- EventEntry.cs
- basenumberconverter.cs
- FlatButtonAppearance.cs
- DataException.cs
- RectConverter.cs
- InputLanguageProfileNotifySink.cs
- FastPropertyAccessor.cs
- SqlClientMetaDataCollectionNames.cs
- Ref.cs
- PersonalizationProviderHelper.cs
- Label.cs
- ToolStripCollectionEditor.cs
- Roles.cs
- ObfuscationAttribute.cs
- ApplyTemplatesAction.cs
- SocketSettings.cs
- ClientRequest.cs
- PointKeyFrameCollection.cs
- DBBindings.cs
- ElementFactory.cs
- TableLayoutCellPaintEventArgs.cs
- BinaryFormatter.cs
- PrinterResolution.cs
- ReadOnlyDictionary.cs
- BinaryCommonClasses.cs
- ControlBuilderAttribute.cs
- XmlHelper.cs
- XmlDocumentType.cs
- RSAPKCS1KeyExchangeFormatter.cs
- WindowsSecurityToken.cs
- ScrollProviderWrapper.cs
- Panel.cs
- HttpWebRequestElement.cs
- StringResourceManager.cs
- GeneralTransform3D.cs
- ComPlusDiagnosticTraceRecords.cs
- FixedBufferAttribute.cs
- RadialGradientBrush.cs
- DetailsView.cs
- configsystem.cs
- FolderNameEditor.cs
- WebCategoryAttribute.cs
- Int32EqualityComparer.cs
- DataGridViewElement.cs
- DataBoundControl.cs
- HttpContextBase.cs
- SqlCacheDependencyDatabaseCollection.cs
- XmlChildNodes.cs
- DataServiceProcessingPipeline.cs
- TreeNodeBindingCollection.cs
- XmlBinaryWriter.cs
- recordstatescratchpad.cs
- CompilerInfo.cs
- MessageDesigner.cs
- PropertyManager.cs
- CreateParams.cs
- HttpPostedFileBase.cs
- Drawing.cs
- XmlMembersMapping.cs
- RequestContext.cs
- ConstrainedDataObject.cs
- ServicePerformanceCounters.cs
- PagesSection.cs
- DbConnectionPoolCounters.cs
- FieldBuilder.cs
- Walker.cs
- xamlnodes.cs
- DataGridPagingPage.cs
- EventSinkHelperWriter.cs
- ProcessThread.cs
- FontClient.cs
- DeferredReference.cs
- COM2ICategorizePropertiesHandler.cs
- HashCryptoHandle.cs
- WinEventHandler.cs