Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / Xslt / XsltArgumentList.cs / 1 / XsltArgumentList.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System.Collections; using System.Security.Permissions; namespace System.Xml.Xsl { public abstract class XsltMessageEncounteredEventArgs : EventArgs { public abstract string Message { get; } } public delegate void XsltMessageEncounteredEventHandler(object sender, XsltMessageEncounteredEventArgs e); public class XsltArgumentList { private Hashtable parameters = new Hashtable(); private Hashtable extensions = new Hashtable(); // Used for reporting xsl:message's during execution internal XsltMessageEncounteredEventHandler xsltMessageEncountered = null; public XsltArgumentList() {} public object GetParam(string name, string namespaceUri) { return this.parameters[new XmlQualifiedName(name, namespaceUri)]; } public object GetExtensionObject(string namespaceUri) { return this.extensions[namespaceUri]; } public void AddParam(string name, string namespaceUri, object parameter) { CheckArgumentNull(name , "name" ); CheckArgumentNull(namespaceUri, "namespaceUri"); CheckArgumentNull(parameter , "parameter" ); XmlQualifiedName qname = new XmlQualifiedName(name, namespaceUri); qname.Verify(); this.parameters.Add(qname, parameter); } public void AddExtensionObject(string namespaceUri, object extension) { CheckArgumentNull(namespaceUri, "namespaceUri"); CheckArgumentNull(extension , "extension" ); this.extensions.Add(namespaceUri, extension); } public object RemoveParam(string name, string namespaceUri) { XmlQualifiedName qname = new XmlQualifiedName(name, namespaceUri); object parameter = this.parameters[qname]; this.parameters.Remove(qname); return parameter; } public object RemoveExtensionObject(string namespaceUri) { object extension = this.extensions[namespaceUri]; this.extensions.Remove(namespaceUri); return extension; } public event XsltMessageEncounteredEventHandler XsltMessageEncountered { add { xsltMessageEncountered += value; } remove { xsltMessageEncountered -= value; } } public void Clear() { this.parameters.Clear(); this.extensions.Clear(); xsltMessageEncountered = null; } private static void CheckArgumentNull(object param, string paramName) { if (param == null) { throw new ArgumentNullException(paramName); } } } } // 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
- FixedTextView.cs
- BamlTreeMap.cs
- UInt64.cs
- NamespaceCollection.cs
- GPPOINTF.cs
- NegationPusher.cs
- JapaneseCalendar.cs
- KnownColorTable.cs
- RightsManagementInformation.cs
- UnSafeCharBuffer.cs
- HtmlShimManager.cs
- SqlDataSourceStatusEventArgs.cs
- SafeFileMappingHandle.cs
- Asn1IntegerConverter.cs
- ExceptionWrapper.cs
- DecimalAnimationBase.cs
- ListViewGroupItemCollection.cs
- HierarchicalDataSourceDesigner.cs
- DbMetaDataColumnNames.cs
- ToolboxItemFilterAttribute.cs
- RadioButtonAutomationPeer.cs
- Shape.cs
- MatrixTransform.cs
- GreaterThanOrEqual.cs
- ListBindingHelper.cs
- DBConnectionString.cs
- LoadedOrUnloadedOperation.cs
- RawStylusSystemGestureInputReport.cs
- SafeFindHandle.cs
- LayoutEditorPart.cs
- ElementProxy.cs
- PartialCachingAttribute.cs
- IndexedGlyphRun.cs
- StructuredTypeEmitter.cs
- SliderAutomationPeer.cs
- SafeWaitHandle.cs
- ChannelManager.cs
- CursorConverter.cs
- CharacterMetricsDictionary.cs
- BinarySerializer.cs
- EntityCollectionChangedParams.cs
- CatalogZoneBase.cs
- BrowserCapabilitiesFactory.cs
- AssemblyResourceLoader.cs
- TokenBasedSetEnumerator.cs
- VectorValueSerializer.cs
- StorageAssociationTypeMapping.cs
- HttpListenerRequest.cs
- RemotingSurrogateSelector.cs
- ReadOnlyDictionary.cs
- BitmapCodecInfoInternal.cs
- InheritanceContextChangedEventManager.cs
- Cursors.cs
- StateRuntime.cs
- SqlCommandSet.cs
- TextLineBreak.cs
- PopupControlService.cs
- CornerRadiusConverter.cs
- Size.cs
- EnumUnknown.cs
- TextTreeObjectNode.cs
- ForceCopyBuildProvider.cs
- SafeArrayRankMismatchException.cs
- ConnectionProviderAttribute.cs
- Keyboard.cs
- BitmapEffectGeneralTransform.cs
- AffineTransform3D.cs
- SerializationStore.cs
- CompositionAdorner.cs
- XmlWriterSettings.cs
- DataGridCellsPresenter.cs
- DropShadowEffect.cs
- ReflectionPermission.cs
- CapabilitiesUse.cs
- ControlEvent.cs
- DataGridRow.cs
- Dynamic.cs
- TableLayoutColumnStyleCollection.cs
- XPathNodeIterator.cs
- StringArrayConverter.cs
- CollectionsUtil.cs
- DataSourceControlBuilder.cs
- ObjectDataSourceFilteringEventArgs.cs
- XmlSchemaSearchPattern.cs
- PackageDigitalSignature.cs
- PrintingPermission.cs
- DesignerAdapterAttribute.cs
- PackageFilter.cs
- SymmetricKeyWrap.cs
- Span.cs
- HeaderedContentControl.cs
- SecUtil.cs
- GridViewCancelEditEventArgs.cs
- HttpRequestCacheValidator.cs
- NetworkInformationException.cs
- SEHException.cs
- XmlSchemaAppInfo.cs
- VectorAnimationUsingKeyFrames.cs
- ObjectDisposedException.cs
- Hyperlink.cs