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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NativeMethods.cs
- ListItemViewAttribute.cs
- Int32Storage.cs
- SmtpMail.cs
- ViewService.cs
- SqlAliaser.cs
- OptimalBreakSession.cs
- RequestNavigateEventArgs.cs
- XmlSiteMapProvider.cs
- EditCommandColumn.cs
- TableLayoutPanel.cs
- CssStyleCollection.cs
- ToolStripOverflow.cs
- Label.cs
- XmlSerializableWriter.cs
- Vertex.cs
- Icon.cs
- KeyboardNavigation.cs
- SessionParameter.cs
- MessageHeaderException.cs
- BuildDependencySet.cs
- Point4D.cs
- BypassElement.cs
- DataGridViewTopLeftHeaderCell.cs
- ValueUtilsSmi.cs
- DataGridViewRowsAddedEventArgs.cs
- ToolStripAdornerWindowService.cs
- TextOptionsInternal.cs
- HttpFileCollection.cs
- ListenerConnectionModeReader.cs
- WSSecureConversationDec2005.cs
- BoolExpressionVisitors.cs
- TraceUtils.cs
- UrlPath.cs
- HTMLTextWriter.cs
- SecureEnvironment.cs
- SystemTcpConnection.cs
- UIElementIsland.cs
- KeyFrames.cs
- XsdBuilder.cs
- ContainerTracking.cs
- DPTypeDescriptorContext.cs
- CodeMemberMethod.cs
- ValidationSummary.cs
- ContentOperations.cs
- AbstractDataSvcMapFileLoader.cs
- PropertyNames.cs
- XmlTypeMapping.cs
- AudioBase.cs
- FileInfo.cs
- InternalTypeHelper.cs
- MissingMethodException.cs
- ObfuscateAssemblyAttribute.cs
- SpecularMaterial.cs
- JsonUriDataContract.cs
- followingsibling.cs
- CollectionType.cs
- Sequence.cs
- SimpleBitVector32.cs
- PropagatorResult.cs
- EdmType.cs
- ExpressionDumper.cs
- ActivitiesCollection.cs
- ControlPaint.cs
- BufferedReadStream.cs
- Convert.cs
- DependencyPropertyKey.cs
- DataException.cs
- LinkButton.cs
- GenericIdentity.cs
- StrongNamePublicKeyBlob.cs
- PartialCachingAttribute.cs
- WebPartConnection.cs
- TargetControlTypeCache.cs
- LabelLiteral.cs
- DomNameTable.cs
- QuaternionConverter.cs
- EditorAttribute.cs
- SystemEvents.cs
- XmlNamespaceDeclarationsAttribute.cs
- MasterPage.cs
- BooleanExpr.cs
- DataIdProcessor.cs
- AssemblyBuilderData.cs
- EntityTypeBase.cs
- XamlClipboardData.cs
- CriticalFinalizerObject.cs
- _HeaderInfoTable.cs
- ImageUrlEditor.cs
- Peer.cs
- XamlStream.cs
- EdmItemCollection.cs
- WmlLinkAdapter.cs
- SqlServer2KCompatibilityCheck.cs
- BridgeDataRecord.cs
- WindowsScrollBarBits.cs
- HttpRequestWrapper.cs
- PrimitiveXmlSerializers.cs
- IItemContainerGenerator.cs
- StringArrayConverter.cs