Свойство | Тип | Описание | |
---|---|---|---|
AddAttributes | |||
AddAttributes | |||
AddEditorTable | void | ||
AddProvider | void | ||
AddProvider | void | ||
AddProviderTransparent | void | ||
AddProviderTransparent | void | ||
CheckDefaultProvider | void | ||
CreateAssociation | void | ||
FilterMembers | |||
GetAssociation | object | ||
GetAttributes | |||
GetCache | IDictionary | ||
GetClassName | string | ||
GetComponentName | string | ||
GetConverter | |||
GetDefaultEvent | System.ComponentModel.EventDescriptor | ||
GetDefaultProperty | |||
GetDescriptor | ICustomTypeDescriptor | ||
GetDescriptor | ICustomTypeDescriptor | ||
GetEditor | object | ||
GetEvents | |||
GetEvents | |||
GetExtendedDescriptor | ICustomTypeDescriptor | ||
GetExtenderCollisionSuffix | string | ||
GetNodeForBaseType | |||
GetProperties | |||
GetPropertiesImpl | |||
GetProvider | |||
GetProvider | |||
GetProviderRecursive | |||
GetReflectionType | |||
GetReflectionType | |||
NodeFor | TypeDescriptionNode | ||
NodeFor | TypeDescriptionNode | ||
NodeFor | TypeDescriptionNode | ||
NodeFor | TypeDescriptionNode | ||
NodeRemove | void | ||
PipelineAttributeFilter | ICollection | ||
PipelineFilter | ICollection | ||
PipelineInitialize | ICollection | ||
PipelineMerge | ICollection | ||
RaiseRefresh | void | ||
RaiseRefresh | void | ||
Refresh | void | ||
RemoveAssociation | void | ||
RemoveAssociations | void | ||
RemoveProvider | void | ||
RemoveProvider | void | ||
RemoveProviderTransparent | void | ||
RemoveProviderTransparent | void | ||
ShouldHideMember | bool | ||
TypeDescriptor | System.Collections |
Метод | Описание | |
---|---|---|
CreateDesigner ( IComponent component, |
||
CreateEvent ( |
This creates a new event descriptor identical to an existing event descriptor. The new event descriptor has the specified metadata attributes merged with the existing metadata attributes.
|
|
CreateEvent ( |
This dynamically binds an EventDescriptor to a type.
|
|
CreateInstance ( IServiceProvider provider, |
This method will search internal tables within TypeDescriptor for a TypeDescriptionProvider object that is associated with the given data type. If it finds one, it will delegate the call to that object.
|
|
CreateProperty ( |
This creates a new property descriptor identical to an existing property descriptor. The new property descriptor has the specified metadata attributes merged with the existing metadata attributes.
|
|
CreateProperty ( |
This dynamically binds a PropertyDescriptor to a type.
|
|
GetAttributes ( |
Gets a collection of attributes for the specified type of component.
|
|
GetAttributes ( object component ) : |
Gets a collection of attributes for the specified component.
|
|
GetClassName ( |
Gets the name of the class for the specified type.
|
|
GetClassName ( object component ) : string |
Gets the name of the class for the specified component.
|
|
GetComponentName ( object component ) : string |
The name of the class for the specified component.
|
|
GetConverter ( |
Gets a type converter for the specified type.
|
|
GetConverter ( object component ) : |
Gets a type converter for the type of the specified component.
|
|
GetDefaultEvent ( |
Gets the default event for the specified type of component.
|
|
GetDefaultEvent ( object component ) : System.ComponentModel.EventDescriptor |
Gets the default event for the specified component.
|
|
GetDefaultProperty ( |
Gets the default property for the specified type of component.
|
|
GetDefaultProperty ( object component ) : |
Gets the default property for the specified component.
|
|
GetEditor ( |
Gets an editor with the specified base type for the specified type.
|
|
GetEditor ( object component, |
Gets an editor with the specified base type for the specified component.
|
|
GetEvents ( |
Gets a collection of events for a specified type of component.
|
|
GetEvents ( |
Gets a collection of events for a specified type of component using a specified array of attributes as a filter.
|
|
GetEvents ( object component ) : |
Gets a collection of events for a specified component.
|
|
GetEvents ( object component, |
Gets a collection of events for a specified component using a specified array of attributes as a filter.
|
|
GetFullComponentName ( object component ) : string |
The name of the specified component, or null if the component has no name. In many cases this will return the same value as GetComponentName. If the component resides in a nested container or has other nested semantics, it may return a different fully qualfied name.
|
|
GetProperties ( |
Gets a collection of properties for a specified type of component.
|
|
GetProperties ( |
Gets a collection of properties for a specified type of component using a specified array of attributes as a filter.
|
|
GetProperties ( object component ) : |
Gets a collection of properties for a specified component.
|
|
GetProperties ( object component, |
Gets a collection of properties for a specified component using a specified array of attributes as a filter.
|
|
GetProperties ( object component, |
Gets a collection of properties for a specified component using a specified array of attributes as a filter.
|
|
Refresh ( |
Clears the properties and events for the specified assembly from the cache.
|
|
Refresh ( |
Clears the properties and events for the specified module from the cache.
|
|
Refresh ( |
Clears the properties and events for the specified type of component from the cache.
|
|
Refresh ( object component ) : void |
Clears the properties and events for the specified component from the cache.
|
|
SortDescriptorArray ( IList infos ) : void |
Sorts descriptors by name of the descriptor.
|
Метод | Описание | |
---|---|---|
AddAttributes ( |
||
AddAttributes ( object instance ) : |
||
AddEditorTable ( |
||
AddProvider ( |
||
AddProvider ( |
||
AddProviderTransparent ( |
||
AddProviderTransparent ( |
||
CheckDefaultProvider ( |
This method verifies that we have checked for the presence of a default type description provider attribute for the given type.
|
|
CreateAssociation ( object primary, object secondary ) : void | ||
FilterMembers ( IList members, |
This API is used to remove any members from the given collection that do not match the attribute array. If members need to be removed, a new ArrayList wil be created that contains only the remaining members. The API returns NULL if it did not need to filter any members.
|
|
GetAssociation ( |
||
GetAttributes ( object component, bool noCustomTypeDesc ) : |
||
GetCache ( object instance ) : IDictionary |
Helper function to obtain a cache for the given object.
|
|
GetClassName ( object component, bool noCustomTypeDesc ) : string | ||
GetComponentName ( object component, bool noCustomTypeDesc ) : string | ||
GetConverter ( object component, bool noCustomTypeDesc ) : |
||
GetDefaultEvent ( object component, bool noCustomTypeDesc ) : System.ComponentModel.EventDescriptor | ||
GetDefaultProperty ( object component, bool noCustomTypeDesc ) : |
||
GetDescriptor ( |
Returns a custom type descriptor for the given type. Performs arg checking so callers don't have to.
|
|
GetDescriptor ( object component, bool noCustomTypeDesc ) : ICustomTypeDescriptor |
Returns a custom type descriptor for the given instance. Performs arg checking so callers don't have to. This will call through to instance if it is a custom type descriptor.
|
|
GetEditor ( object component, |
||
GetEvents ( object component, |
||
GetEvents ( object component, bool noCustomTypeDesc ) : |
||
GetExtendedDescriptor ( object component ) : ICustomTypeDescriptor |
Returns an extended custom type descriptor for the given instance.
|
|
GetExtenderCollisionSuffix ( |
This method is invoked during filtering when a name collision is encountered between two properties or events. This returns a suffix that can be appended to the name to make it unique. This will first attempt ot use the name of the extender. Failing that it will fall back to a static index that is continually incremented.
|
|
GetNodeForBaseType ( |
||
GetProperties ( object component, bool noCustomTypeDesc ) : |
||
GetPropertiesImpl ( object component, |
Gets a collection of properties for a specified component. Uses the attribute filter only if noAttributes is false. This is to preserve backward compat for the case when no attribute filter was passed in (as against passing in null).
|
|
GetProvider ( |
||
GetProvider ( object instance ) : |
||
GetProviderRecursive ( |
This method returns a type description provider, but instead of creating a delegating provider for the type, this will walk all base types until it locates a provider. The provider returned cannot be cached. This method is used by the DelegatingTypeDescriptionProvider to efficiently locate the provider to delegate to.
|
|
GetReflectionType ( |
||
GetReflectionType ( object instance ) : |
||
NodeFor ( |
Retrieves the head type description node for a type. A head node pointing to a reflection based type description provider will be created on demand. This does not create a delegator, in which case the node returned may be a base type node.
|
|
NodeFor ( |
Retrieves the head type description node for a type. A head node pointing to a reflection based type description provider will be created on demand. If createDelegator is true, this method will create a delegation node for a type if the type has no node of its own. Delegation nodes should be created if you are going to hand this node out to a user. Without a delegation node, user code could skip providers that are added after their call. Delegation nodes solve that problem. If createDelegator is false, this method will recurse up the base type chain looking for nodes.
|
|
NodeFor ( object instance ) : TypeDescriptionNode |
Retrieves the head type description node for an instance. Instance-based node lists are rare. If a node list is not available for a given instance, this will return the head node for the instance's type.
|
|
NodeFor ( object instance, bool createDelegator ) : TypeDescriptionNode |
Retrieves the head type description node for an instance. Instance-based node lists are rare. If a node list is not available for a given instance, this will return the head node for the instance's type. This variation offers a bool called createDelegator. If true and there is no node list for this instance, NodeFor will create a temporary "delegator node" that, when queried, will delegate to the type stored in the instance. This is done on demand, which means if someone else added a type description provider for the instance's type the delegator would pick up the new type. If a query is being made that does not involve publicly exposing the type description provider for the instance, the query should pass in fase (the default) for createDelegator because no object will be created.
|
|
NodeRemove ( object key, |
Simple linked list code to remove an element from the list. Returns the new head to the list. If the head points to an instance of DelegatingTypeDescriptionProvider, we clear the node because all it is doing is delegating elsewhere. Note that this behaves a little differently from normal linked list code. In a normal linked list, you remove then target node and fixup the links. In this linked list, we remove the node AFTER the target node, fixup the links, and fixup the underlying providers that each node references. The reason for this is that most providers keep a reference to the previous provider, which is exposed as one of these nodes. Therefore, to remove a provider the node following is most likely referenced by that provider
|
|
PipelineAttributeFilter ( int pipelineType, ICollection members, |
This is the last stage in our filtering pipeline. Here, we apply any user-defined filter.
|
|
PipelineFilter ( int pipelineType, ICollection members, object instance, IDictionary cache ) : ICollection |
Metdata filtering is the third stage of our pipeline. In this stage we check to see if the given object is a sited component that provides the ITypeDescriptorFilterService object. If it does, we allow the TDS to filter the metadata. This will use the cache, if available, to store filtered metdata.
|
|
PipelineInitialize ( int pipelineType, ICollection members, IDictionary cache ) : ICollection |
This is the first stage in the pipeline. This checks the incoming member collection and if it differs from what we have seen in the past, it invalidates all successive pipelines.
|
|
PipelineMerge ( int pipelineType, ICollection primary, ICollection secondary, object instance, IDictionary cache ) : ICollection |
Metadata merging is the second stage of our metadata pipeline. This stage merges extended metdata with primary metadata, and stores it in the cache if it is available.
|
|
RaiseRefresh ( |
||
RaiseRefresh ( object component ) : void | ||
Refresh ( object component, bool refreshReflectionProvider ) : void | ||
RemoveAssociation ( object primary, object secondary ) : void | ||
RemoveAssociations ( object primary ) : void | ||
RemoveProvider ( |
||
RemoveProvider ( |
||
RemoveProviderTransparent ( |
||
RemoveProviderTransparent ( |
||
ShouldHideMember ( |
This function takes a member descriptor and an attribute and determines whether the member satisfies the particular attribute. This either means that the member contains the attribute or the member does not contain the attribute and the default for the attribute matches the passed in attribute.
|
|
TypeDescriptor ( ) : System.Collections |
public static CreateDesigner ( IComponent component, |
||
component | IComponent | |
designerBaseType | ||
Результат | IDesigner |
public static CreateEvent ( |
||
componentType | ||
oldEventDescriptor | System.ComponentModel.EventDescriptor | |
Результат | System.ComponentModel.EventDescriptor |
public static CreateEvent ( |
||
componentType | ||
name | string | |
type | ||
Результат | System.ComponentModel.EventDescriptor |
public static CreateInstance ( IServiceProvider provider, |
||
provider | IServiceProvider | |
objectType | ||
argTypes | ||
args | object | |
Результат | object |
public static CreateProperty ( |
||
componentType | ||
oldPropertyDescriptor | ||
Результат |
public static CreateProperty ( |
||
componentType | ||
name | string | |
type | ||
Результат |
public static GetAttributes ( |
||
componentType | ||
Результат |
public static GetAttributes ( object component ) : |
||
component | object | |
Результат |
public static GetClassName ( |
||
componentType | ||
Результат | string |
public static GetClassName ( object component ) : string | ||
component | object | |
Результат | string |
public static GetComponentName ( object component ) : string | ||
component | object | |
Результат | string |
public static GetConverter ( |
||
type | ||
Результат |
public static GetConverter ( object component ) : |
||
component | object | |
Результат |
public static GetDefaultEvent ( |
||
componentType | ||
Результат | System.ComponentModel.EventDescriptor |
public static GetDefaultEvent ( object component ) : System.ComponentModel.EventDescriptor | ||
component | object | |
Результат | System.ComponentModel.EventDescriptor |
public static GetDefaultProperty ( |
||
componentType | ||
Результат |
public static GetDefaultProperty ( object component ) : |
||
component | object | |
Результат |
public static GetEditor ( |
||
type | ||
editorBaseType | ||
Результат | object |
public static GetEditor ( object component, |
||
component | object | |
editorBaseType | ||
Результат | object |
public static GetEvents ( |
||
componentType | ||
Результат |
public static GetEvents ( |
||
componentType | ||
attributes | ||
Результат |
public static GetEvents ( object component ) : |
||
component | object | |
Результат |
public static GetEvents ( object component, |
||
component | object | |
attributes | ||
Результат |
public static GetFullComponentName ( object component ) : string | ||
component | object | |
Результат | string |
public static GetProperties ( |
||
componentType | ||
Результат |
public static GetProperties ( |
||
componentType | ||
attributes | ||
Результат |
public static GetProperties ( object component ) : |
||
component | object | |
Результат |
public static GetProperties ( object component, |
||
component | object | |
attributes | ||
Результат |
public static GetProperties ( object component, |
||
component | object | |
attributes | ||
noCustomTypeDesc | bool | |
Результат |
public static Refresh ( |
||
assembly | ||
Результат | void |
public static Refresh ( |
||
module | ||
Результат | void |
public static Refresh ( |
||
type | ||
Результат | void |
public static Refresh ( object component ) : void | ||
component | object | |
Результат | void |
public static SortDescriptorArray ( IList infos ) : void | ||
infos | IList | |
Результат | void |