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
- Registry.cs
- CodeMethodReturnStatement.cs
- ScriptServiceAttribute.cs
- NullableBoolConverter.cs
- FieldToken.cs
- MainMenu.cs
- AttachedPropertyMethodSelector.cs
- BufferedOutputAsyncStream.cs
- CryptographicAttribute.cs
- MemberMemberBinding.cs
- wgx_sdk_version.cs
- DataServiceKeyAttribute.cs
- _NetworkingPerfCounters.cs
- SQLMembershipProvider.cs
- DateTimeFormatInfoScanner.cs
- MouseBinding.cs
- ClientTarget.cs
- TreeNodeStyle.cs
- TreeView.cs
- WinEventHandler.cs
- ConsumerConnectionPoint.cs
- GridViewCommandEventArgs.cs
- TraceContextEventArgs.cs
- ConsoleCancelEventArgs.cs
- XslAst.cs
- CngProvider.cs
- MappedMetaModel.cs
- Select.cs
- MouseOverProperty.cs
- CodeMemberEvent.cs
- StrokeNode.cs
- HttpApplication.cs
- DecoderBestFitFallback.cs
- RectangleHotSpot.cs
- _NegoState.cs
- EntityContainer.cs
- MultiByteCodec.cs
- ValidationEventArgs.cs
- SqlConnectionManager.cs
- DesignTimeParseData.cs
- SystemIcmpV6Statistics.cs
- ConfigurationStrings.cs
- LineInfo.cs
- PropertyDescriptor.cs
- MdiWindowListStrip.cs
- TagMapInfo.cs
- RuntimeIdentifierPropertyAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- MessagePropertyFilter.cs
- XmlSchemaSimpleContentRestriction.cs
- ServiceMoniker.cs
- PartitionResolver.cs
- DataTableTypeConverter.cs
- SymLanguageVendor.cs
- CapabilitiesAssignment.cs
- TemplatePartAttribute.cs
- TrackBarDesigner.cs
- DataGridItem.cs
- RuntimeEnvironment.cs
- PrintControllerWithStatusDialog.cs
- SystemIPGlobalProperties.cs
- InstanceCreationEditor.cs
- EnumerableRowCollection.cs
- Substitution.cs
- SpecularMaterial.cs
- ConnectorSelectionGlyph.cs
- DataListCommandEventArgs.cs
- DateTimeUtil.cs
- ListSourceHelper.cs
- CharacterBuffer.cs
- Control.cs
- APCustomTypeDescriptor.cs
- OutputCacheProfile.cs
- StylusShape.cs
- NetSectionGroup.cs
- TextMessageEncodingBindingElement.cs
- DockAndAnchorLayout.cs
- IDReferencePropertyAttribute.cs
- CachingHintValidation.cs
- AnimatedTypeHelpers.cs
- SupportsEventValidationAttribute.cs
- VariableModifiersHelper.cs
- ImageListUtils.cs
- DateTimeEditor.cs
- NotCondition.cs
- ContentElement.cs
- SizeChangedEventArgs.cs
- ExtensionDataObject.cs
- ServiceModelActivationSectionGroup.cs
- SafeReversePInvokeHandle.cs
- XmlStreamedByteStreamReader.cs
- EntityCommandCompilationException.cs
- BinaryParser.cs
- PageAsyncTaskManager.cs
- RotationValidation.cs
- CompressionTransform.cs
- DateTimeFormatInfoScanner.cs
- ParentQuery.cs
- HttpListenerPrefixCollection.cs
- LocationSectionRecord.cs