Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Runtime / InteropServices / ExtensibleClassFactory.cs / 1 / ExtensibleClassFactory.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ExtensibleClassFactory ** ** ** Purpose: Methods used to customize the creation of managed objects that ** extend from unmanaged objects. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.CompilerServices; using System; [System.Runtime.InteropServices.ComVisible(true)] public sealed class ExtensibleClassFactory { // Prevent instantiation. private ExtensibleClassFactory() {} // Register a delegate that will be called whenever an instance of a managed // type that extends from an unmanaged type needs to allocate the aggregated // unmanaged object. This delegate is expected to allocate and aggregate the // unmanaged object and is called in place of a CoCreateInstance. This // routine must be called in the context of the static initializer for the // class for which the callbacks will be made. // It is not legal to register this callback from a class that has any // parents that have already registered a callback. [MethodImplAttribute(MethodImplOptions.InternalCall)] public static extern void RegisterObjectCreationCallback(ObjectCreationDelegate callback); } } // 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
- JumpPath.cs
- Brush.cs
- Table.cs
- SecurityValidationBehavior.cs
- MetadataWorkspace.cs
- Quaternion.cs
- VerifyHashRequest.cs
- TreeSet.cs
- BaseCodeDomTreeGenerator.cs
- AttributeEmitter.cs
- Propagator.JoinPropagator.cs
- MDIClient.cs
- SpellerError.cs
- VirtualizingPanel.cs
- TimeoutHelper.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TextReader.cs
- mda.cs
- CodeTypeDeclarationCollection.cs
- CodeAccessPermission.cs
- AuthenticatedStream.cs
- PauseStoryboard.cs
- SchemaImporterExtension.cs
- TemplateControlBuildProvider.cs
- FigureHelper.cs
- MailBnfHelper.cs
- AsyncResult.cs
- RoutedEvent.cs
- TraceContextEventArgs.cs
- Camera.cs
- SessionEndedEventArgs.cs
- EventMappingSettings.cs
- RuntimeVariableList.cs
- Version.cs
- ISAPIApplicationHost.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- StaticExtensionConverter.cs
- TransactionsSectionGroup.cs
- ClipboardData.cs
- ExpressionsCollectionConverter.cs
- NewArrayExpression.cs
- XmlSortKeyAccumulator.cs
- DetectRunnableInstancesTask.cs
- ListItemCollection.cs
- BoolExpr.cs
- TextEffectResolver.cs
- StylusPlugin.cs
- CultureSpecificCharacterBufferRange.cs
- GraphicsPathIterator.cs
- Win32MouseDevice.cs
- WindowsSlider.cs
- TextViewBase.cs
- TemplateXamlParser.cs
- ToggleButton.cs
- ErrorWrapper.cs
- SystemPens.cs
- HandleRef.cs
- MonthChangedEventArgs.cs
- EditorZoneBase.cs
- DataTemplateSelector.cs
- UnsafeNativeMethods.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- OpCopier.cs
- NegotiateStream.cs
- DebugView.cs
- HMACRIPEMD160.cs
- SineEase.cs
- ViewgenContext.cs
- WebScriptMetadataMessageEncoderFactory.cs
- CalendarTable.cs
- ProjectedWrapper.cs
- SqlInternalConnectionSmi.cs
- PackageRelationshipCollection.cs
- WebSysDescriptionAttribute.cs
- ListItemConverter.cs
- XPathNavigatorKeyComparer.cs
- DefaultTextStoreTextComposition.cs
- CallTemplateAction.cs
- TextWriterTraceListener.cs
- EntitySetBase.cs
- LinkUtilities.cs
- MetadataItemEmitter.cs
- RoutingUtilities.cs
- TextFormatterHost.cs
- NetMsmqBindingCollectionElement.cs
- unitconverter.cs
- Normalization.cs
- IPPacketInformation.cs
- DataSetUtil.cs
- LabelDesigner.cs
- LabelLiteral.cs
- XpsSerializerFactory.cs
- PresentationTraceSources.cs
- ICspAsymmetricAlgorithm.cs
- Typography.cs
- DispatcherEventArgs.cs
- DataServiceRequestException.cs
- TimeZone.cs
- OutputWindow.cs
- WebPartsPersonalizationAuthorization.cs