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
- Pair.cs
- TextRenderer.cs
- DateTimeStorage.cs
- DefaultPrintController.cs
- AssertFilter.cs
- PrePrepareMethodAttribute.cs
- IISMapPath.cs
- Table.cs
- WebPartAuthorizationEventArgs.cs
- List.cs
- StylusPointDescription.cs
- ScriptResourceMapping.cs
- SessionMode.cs
- AttributeUsageAttribute.cs
- ProtocolsConfigurationHandler.cs
- TransactionFlowBindingElementImporter.cs
- BeginEvent.cs
- OdbcError.cs
- SiteMapDataSource.cs
- CommonServiceBehaviorElement.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- CheckBoxField.cs
- PropertyGridEditorPart.cs
- TemplateFactory.cs
- StreamResourceInfo.cs
- httpserverutility.cs
- TabControl.cs
- XmlSchemaAttribute.cs
- SecurityContextTokenValidationException.cs
- XmlSerializer.cs
- SelectionManager.cs
- UnitySerializationHolder.cs
- TemporaryBitmapFile.cs
- CodeCommentStatement.cs
- TargetParameterCountException.cs
- DataGridHyperlinkColumn.cs
- HandleExceptionArgs.cs
- PrintPageEvent.cs
- XmlSchemaComplexContentExtension.cs
- WebHttpSecurityElement.cs
- XmlQueryContext.cs
- Utility.cs
- Metafile.cs
- ConfigurationValue.cs
- TableLayout.cs
- InsufficientMemoryException.cs
- Contracts.cs
- TextSchema.cs
- Event.cs
- ExpandableObjectConverter.cs
- MatrixTransform3D.cs
- MessageQueueEnumerator.cs
- GridViewCancelEditEventArgs.cs
- ServiceKnownTypeAttribute.cs
- DbLambda.cs
- SocketCache.cs
- MethodCallConverter.cs
- UIntPtr.cs
- CriticalHandle.cs
- DuplexChannel.cs
- TrackingProfileManager.cs
- GetTokenRequest.cs
- AnimatedTypeHelpers.cs
- QilInvokeLateBound.cs
- SafeHandles.cs
- VisualBasicSettings.cs
- ISO2022Encoding.cs
- TaskExtensions.cs
- ViewManager.cs
- sqlinternaltransaction.cs
- BindingExpressionUncommonField.cs
- AssemblyAssociatedContentFileAttribute.cs
- Int32AnimationBase.cs
- Helper.cs
- EditingScopeUndoUnit.cs
- MetadataReference.cs
- ObjectDataProvider.cs
- TextDecorationLocationValidation.cs
- WebControl.cs
- WebServiceData.cs
- RadioButtonPopupAdapter.cs
- PropertyValueChangedEvent.cs
- SettingsContext.cs
- ConfigXmlText.cs
- SecurityDocument.cs
- Button.cs
- Matrix3DValueSerializer.cs
- StackSpiller.cs
- TextEditorSpelling.cs
- CacheEntry.cs
- DomNameTable.cs
- PropertyGridEditorPart.cs
- JumpPath.cs
- UriExt.cs
- ControlBuilderAttribute.cs
- DocumentXPathNavigator.cs
- Delegate.cs
- _ConnectOverlappedAsyncResult.cs
- WebEventTraceProvider.cs
- DataGridViewAdvancedBorderStyle.cs