Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextEditorTyping.cs
- SiteMapSection.cs
- DataSourceBooleanViewSchemaConverter.cs
- SqlParameter.cs
- TextWriter.cs
- DataObjectFieldAttribute.cs
- EncryptedReference.cs
- Column.cs
- PlatformNotSupportedException.cs
- BufferBuilder.cs
- UrlAuthorizationModule.cs
- SchemaCollectionCompiler.cs
- RawAppCommandInputReport.cs
- ReferencedType.cs
- PrivilegeNotHeldException.cs
- ActivityXRefPropertyEditor.cs
- SmtpDigestAuthenticationModule.cs
- XamlVector3DCollectionSerializer.cs
- FrameworkContentElement.cs
- ListInitExpression.cs
- MappingItemCollection.cs
- ActivityExecutionFilter.cs
- ConfigurationSettings.cs
- TextPointerBase.cs
- ConstrainedDataObject.cs
- CustomAttributeBuilder.cs
- storepermissionattribute.cs
- TimeoutException.cs
- OpCodes.cs
- SelectionRangeConverter.cs
- ObjectResult.cs
- DataGridViewColumnHeaderCell.cs
- Container.cs
- __Filters.cs
- DockPanel.cs
- PageCache.cs
- DataSourceSerializationException.cs
- ResourceSet.cs
- SortedSet.cs
- Matrix3D.cs
- ReadOnlyKeyedCollection.cs
- ExportOptions.cs
- XmlAtomicValue.cs
- CodeSnippetTypeMember.cs
- PublisherMembershipCondition.cs
- ItemChangedEventArgs.cs
- DataTablePropertyDescriptor.cs
- Root.cs
- SchemaEntity.cs
- grammarelement.cs
- ReferencedAssembly.cs
- AttributeProviderAttribute.cs
- RegexCode.cs
- ByteKeyFrameCollection.cs
- EntitySetBase.cs
- XmlParser.cs
- X509CertificateTrustedIssuerElement.cs
- XPathMultyIterator.cs
- PolicyStatement.cs
- DateTimeUtil.cs
- PersistenceException.cs
- SoapParser.cs
- ValidationErrorEventArgs.cs
- IgnoreSectionHandler.cs
- WebDisplayNameAttribute.cs
- ResourcesChangeInfo.cs
- FamilyMap.cs
- Visitor.cs
- SystemWebSectionGroup.cs
- LinqDataSourceInsertEventArgs.cs
- StatusBarPanelClickEvent.cs
- MeshGeometry3D.cs
- WebRequestModuleElementCollection.cs
- ReliableInputConnection.cs
- NodeFunctions.cs
- ExpandSegmentCollection.cs
- Baml6Assembly.cs
- XmlQueryCardinality.cs
- DrawingCollection.cs
- TextEditorCopyPaste.cs
- KeyValueSerializer.cs
- TimeStampChecker.cs
- UnsafeMethods.cs
- EventLogger.cs
- SourceFilter.cs
- EventDescriptor.cs
- IdentityValidationException.cs
- SqlBuffer.cs
- SafeBitVector32.cs
- HiddenField.cs
- PropertyChangedEventManager.cs
- FixedSOMTextRun.cs
- DataServices.cs
- CustomTypeDescriptor.cs
- TextBoxRenderer.cs
- KeyConverter.cs
- XmlQueryType.cs
- ForEachAction.cs
- DirectoryObjectSecurity.cs
- PipeException.cs