Compartilhar via


IAsyncAttachedCollectionSource Interface

Represents an IAttachedCollectionSource object that can report on whether or not the HasItems property is currently being initialized, and which raises an INotifyPropertyChanged event when the IsInitializingHasItems value changes.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.12.0 (in Microsoft.VisualStudio.Shell.Immutable.12.0.dll)

Syntax

'Declaration
Public Interface IAsyncAttachedCollectionSource _
    Inherits IAttachedCollectionSource, INotifyPropertyChanged
public interface IAsyncAttachedCollectionSource : IAttachedCollectionSource, 
    INotifyPropertyChanged
public interface class IAsyncAttachedCollectionSource : IAttachedCollectionSource, 
    INotifyPropertyChanged
type IAsyncAttachedCollectionSource =  
    interface 
        interface IAttachedCollectionSource 
        interface INotifyPropertyChanged 
    end
public interface IAsyncAttachedCollectionSource extends IAttachedCollectionSource, INotifyPropertyChanged

The IAsyncAttachedCollectionSource type exposes the following members.

Properties

  Name Description
Public property HasItems Determines whether this IAttachedCollectionSource has any items. (Inherited from IAttachedCollectionSource.)
Public property IsUpdatingHasItems Determines whether the HasItems property is currently being updated. Because updating HasItems may be an asynchronous operation, consumers of the IAttachedCollectionSource may want to wait for this property to become false before deciding that there are no items.
Public property Items Gets (and creates, if necessary) the collection of items associatedwith this IAttachedCollectionSource. (Inherited from IAttachedCollectionSource.)
Public property SourceItem Gets the object used to create this IAttachedCollectionSource. (Inherited from IAttachedCollectionSource.)

Top

Events

  Name Description
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

See Also

Reference

Microsoft.VisualStudio.Shell Namespace