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
- XPathMultyIterator.cs
- XPathItem.cs
- XPathAncestorQuery.cs
- DataServiceClientException.cs
- shaperfactoryquerycachekey.cs
- coordinator.cs
- RowUpdatingEventArgs.cs
- WindowsImpersonationContext.cs
- ResourceExpressionBuilder.cs
- CompletionBookmark.cs
- NameValuePair.cs
- XmlHierarchyData.cs
- ScrollChrome.cs
- XmlWriter.cs
- ScriptResourceMapping.cs
- EditorPart.cs
- InfoCardArgumentException.cs
- ToolStripItemImageRenderEventArgs.cs
- ApplicationServiceHelper.cs
- Add.cs
- ReleaseInstanceMode.cs
- ViewCellSlot.cs
- XpsImage.cs
- PackageProperties.cs
- SourceChangedEventArgs.cs
- TextRunCacheImp.cs
- ExpressionConverter.cs
- MeshGeometry3D.cs
- CaseStatementProjectedSlot.cs
- TextProviderWrapper.cs
- ScrollEventArgs.cs
- SafeNativeMethodsCLR.cs
- FreezableDefaultValueFactory.cs
- WmlListAdapter.cs
- ReflectionHelper.cs
- Helpers.cs
- ReverseInheritProperty.cs
- BaseCollection.cs
- ApplicationBuildProvider.cs
- TreeView.cs
- SurrogateChar.cs
- BamlRecordHelper.cs
- HtmlElementEventArgs.cs
- Vector3D.cs
- ContentType.cs
- ManagedWndProcTracker.cs
- DateTimeFormat.cs
- AncestorChangedEventArgs.cs
- RelationalExpressions.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ArrayElementGridEntry.cs
- XmlUtf8RawTextWriter.cs
- GACMembershipCondition.cs
- BrushMappingModeValidation.cs
- SendMailErrorEventArgs.cs
- GridPattern.cs
- Int32EqualityComparer.cs
- DataRecordInfo.cs
- MouseEvent.cs
- RightNameExpirationInfoPair.cs
- XmlDataSource.cs
- DrawListViewColumnHeaderEventArgs.cs
- SeparatorAutomationPeer.cs
- DataGridView.cs
- LocalFileSettingsProvider.cs
- OperationFormatStyle.cs
- SqlRemoveConstantOrderBy.cs
- DateTimeOffsetConverter.cs
- SqlDataReader.cs
- DataException.cs
- DeviceContext2.cs
- MenuScrollingVisibilityConverter.cs
- SessionStateContainer.cs
- CryptoHandle.cs
- SortDescriptionCollection.cs
- ShapeTypeface.cs
- BaseCAMarshaler.cs
- SafeHandles.cs
- XPathBinder.cs
- DataBindingExpressionBuilder.cs
- OuterGlowBitmapEffect.cs
- SqlOuterApplyReducer.cs
- CacheChildrenQuery.cs
- XPathScanner.cs
- GridViewRowCollection.cs
- VectorCollection.cs
- TransformerInfoCollection.cs
- Menu.cs
- CodeCommentStatement.cs
- XPathNodeInfoAtom.cs
- GregorianCalendar.cs
- TripleDESCryptoServiceProvider.cs
- HttpRawResponse.cs
- RepeaterItem.cs
- HttpHandlerActionCollection.cs
- AssociationProvider.cs
- RequestSecurityTokenResponse.cs
- FacetValues.cs
- Hyperlink.cs
- Label.cs