Code:
/ FX-1434 / FX-1434 / 1.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
- GetResponse.cs
- FixedBufferAttribute.cs
- PropertyCollection.cs
- KeyFrames.cs
- Rotation3DKeyFrameCollection.cs
- OrderingInfo.cs
- DependencyPropertyKey.cs
- Facet.cs
- DataGridViewTopRowAccessibleObject.cs
- GlyphTypeface.cs
- Literal.cs
- JumpPath.cs
- ItemsControlAutomationPeer.cs
- DataIdProcessor.cs
- entitydatasourceentitysetnameconverter.cs
- XmlSchemas.cs
- UpdateCompiler.cs
- RegistryPermission.cs
- MenuTracker.cs
- DataGridViewCellStyle.cs
- QualifierSet.cs
- DesignerPerfEventProvider.cs
- EntityModelSchemaGenerator.cs
- ObsoleteAttribute.cs
- PartitionedStreamMerger.cs
- AsyncContentLoadedEventArgs.cs
- LongPath.cs
- TemplateControl.cs
- ItemsChangedEventArgs.cs
- PerformanceCounterCategory.cs
- TabletDeviceInfo.cs
- GPStream.cs
- OleDbConnectionFactory.cs
- SubtreeProcessor.cs
- MenuAdapter.cs
- Cursors.cs
- TrailingSpaceComparer.cs
- BamlLocalizer.cs
- SetterBaseCollection.cs
- PropertyCondition.cs
- ResXResourceSet.cs
- SiteMapNodeItem.cs
- XmlKeywords.cs
- ScrollChangedEventArgs.cs
- DesignerContextDescriptor.cs
- RequestSecurityToken.cs
- FillErrorEventArgs.cs
- OracleInfoMessageEventArgs.cs
- ActionFrame.cs
- ManipulationVelocities.cs
- MailWriter.cs
- ManagementObject.cs
- _DisconnectOverlappedAsyncResult.cs
- Executor.cs
- TdsRecordBufferSetter.cs
- TreeNodeClickEventArgs.cs
- PagerSettings.cs
- UIntPtr.cs
- QueuePathEditor.cs
- ToolStripMenuItem.cs
- MetabaseSettingsIis7.cs
- OciLobLocator.cs
- XsltLibrary.cs
- XamlSerializerUtil.cs
- bindurihelper.cs
- WindowCollection.cs
- PrivilegedConfigurationManager.cs
- EntityDataSourceStatementEditorForm.cs
- PasswordTextNavigator.cs
- CompilerParameters.cs
- WindowsListViewItemStartMenu.cs
- CacheDependency.cs
- OpenCollectionAsyncResult.cs
- ProxyGenerationError.cs
- PenContext.cs
- RadioButtonRenderer.cs
- XmlDomTextWriter.cs
- _HeaderInfo.cs
- InputProcessorProfilesLoader.cs
- TimeSpanConverter.cs
- ParamArrayAttribute.cs
- InputMethod.cs
- FormatSettings.cs
- WSDualHttpSecurityElement.cs
- PropagatorResult.cs
- SamlAssertion.cs
- WhitespaceRule.cs
- DelimitedListTraceListener.cs
- SoapInteropTypes.cs
- Expander.cs
- ExceptionCollection.cs
- DbModificationClause.cs
- XmlReader.cs
- WebReferencesBuildProvider.cs
- IisTraceListener.cs
- MethodCallTranslator.cs
- SqlDataSource.cs
- ClusterRegistryConfigurationProvider.cs
- SoapProtocolImporter.cs
- OleDbParameterCollection.cs