Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / security / system / security / cryptography / x509 / X509Certificate2Collection.cs / 1 / X509Certificate2Collection.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // X509Certificate2Collection.cs // namespace System.Security.Cryptography.X509Certificates { using System; using System.Collections; using System.Globalization; using System.IO; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; using System.Security.Cryptography; using System.Security.Permissions; using System.Text; using _FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; public enum X509FindType { FindByThumbprint = 0, FindBySubjectName = 1, FindBySubjectDistinguishedName = 2, FindByIssuerName = 3, FindByIssuerDistinguishedName = 4, FindBySerialNumber = 5, FindByTimeValid = 6, FindByTimeNotYetValid = 7, FindByTimeExpired = 8, FindByTemplateName = 9, FindByApplicationPolicy = 10, FindByCertificatePolicy = 11, FindByExtension = 12, FindByKeyUsage = 13, FindBySubjectKeyIdentifier = 14 } public class X509Certificate2Collection : X509CertificateCollection { public X509Certificate2Collection() {} public X509Certificate2Collection(X509Certificate2 certificate) { this.Add(certificate); } public X509Certificate2Collection(X509Certificate2Collection certificates) { this.AddRange(certificates); } public X509Certificate2Collection(X509Certificate2[] certificates) { this.AddRange(certificates); } public new X509Certificate2 this[int index] { get { return (X509Certificate2) List[index]; } set { if (value == null) throw new ArgumentNullException("value"); List[index] = value; } } public int Add(X509Certificate2 certificate) { if (certificate == null) throw new ArgumentNullException("certificate"); return List.Add(certificate); } public void AddRange(X509Certificate2[] certificates) { if (certificates == null) throw new ArgumentNullException("certificates"); int i=0; try { for (; iobject IEnumerator.Current { get { return baseEnumerator.Current; } } public bool MoveNext() { return baseEnumerator.MoveNext(); } /// bool IEnumerator.MoveNext() { return baseEnumerator.MoveNext(); } public void Reset() { baseEnumerator.Reset(); } /// void IEnumerator.Reset() { baseEnumerator.Reset(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BasicExpressionVisitor.cs
- List.cs
- Empty.cs
- OpenTypeMethods.cs
- CompiledIdentityConstraint.cs
- WindowsPen.cs
- NotifyParentPropertyAttribute.cs
- DataControlFieldCell.cs
- DataRowView.cs
- DodSequenceMerge.cs
- SafeRightsManagementPubHandle.cs
- ConnectionStringEditor.cs
- UpDownEvent.cs
- TypeConverterHelper.cs
- Internal.cs
- FixedPageAutomationPeer.cs
- ContentElement.cs
- ArithmeticLiteral.cs
- COAUTHINFO.cs
- ConfigurationManagerHelper.cs
- TreeBuilderBamlTranslator.cs
- UnmanagedMemoryStreamWrapper.cs
- SQlBooleanStorage.cs
- EntityDataSourceMemberPath.cs
- FontFaceLayoutInfo.cs
- DataRow.cs
- EventSetter.cs
- Soap11ServerProtocol.cs
- CallbackHandler.cs
- XmlSchemaAnyAttribute.cs
- ArgumentException.cs
- ConcatQueryOperator.cs
- SourceLineInfo.cs
- IntellisenseTextBox.cs
- AssemblyCacheEntry.cs
- NonVisualControlAttribute.cs
- Permission.cs
- XmlMembersMapping.cs
- System.Data_BID.cs
- DnsPermission.cs
- UnsafeNativeMethods.cs
- TrackingExtract.cs
- AccessorTable.cs
- Decorator.cs
- DateTimeConverter.cs
- SecurityResources.cs
- GPRECTF.cs
- DataGridViewCellPaintingEventArgs.cs
- FocusChangedEventArgs.cs
- PreDigestedSignedInfo.cs
- UnmanagedMemoryStreamWrapper.cs
- PasswordTextNavigator.cs
- HtmlProps.cs
- DelegatingTypeDescriptionProvider.cs
- MatrixUtil.cs
- HtmlInputReset.cs
- BindToObject.cs
- WebPartsPersonalizationAuthorization.cs
- ListViewUpdatedEventArgs.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataSourceControlBuilder.cs
- dbenumerator.cs
- BitmapVisualManager.cs
- RadioButtonPopupAdapter.cs
- GeometryHitTestResult.cs
- IntSumAggregationOperator.cs
- BinHexDecoder.cs
- KeyGestureValueSerializer.cs
- SqlBuilder.cs
- ReadOnlyAttribute.cs
- Debugger.cs
- ToolTip.cs
- WriteTimeStream.cs
- DocumentSchemaValidator.cs
- HttpHandlerAction.cs
- ProtocolsConfigurationHandler.cs
- MemberAccessException.cs
- BrowserDefinition.cs
- NetworkAddressChange.cs
- SqlConnectionHelper.cs
- ColumnPropertiesGroup.cs
- LinkUtilities.cs
- DesignerSerializerAttribute.cs
- CrossContextChannel.cs
- GZipDecoder.cs
- ManipulationDevice.cs
- Vars.cs
- TiffBitmapDecoder.cs
- ConcurrentBag.cs
- InvokePatternIdentifiers.cs
- CellParagraph.cs
- x509store.cs
- IDictionary.cs
- TableLayoutPanel.cs
- InvokePattern.cs
- WMICapabilities.cs
- KnowledgeBase.cs
- PrintingPermissionAttribute.cs
- CodeCompileUnit.cs
- SettingsSavedEventArgs.cs