Share via


DataServiceCollection<T>.LoadCompleted 事件

在异步加载操作完成时发生。

只有 Silverlight 的 WCF Data Services 5.0 客户端支持。

命名空间:  System.Data.Services.Client
程序集:  Microsoft.Data.Services.Client(在 Microsoft.Data.Services.Client.dll 中)

语法

声明
Public Event LoadCompleted As EventHandler(Of LoadCompletedEventArgs)
用法
Dim instance As DataServiceCollection
Dim handler As EventHandler(Of LoadCompletedEventArgs)

AddHandler instance.LoadCompleted, handler
public event EventHandler<LoadCompletedEventArgs> LoadCompleted
public:
 event EventHandler<LoadCompletedEventArgs^>^ LoadCompleted {
    void add (EventHandler<LoadCompletedEventArgs^>^ value);
    void remove (EventHandler<LoadCompletedEventArgs^>^ value);
}
member LoadCompleted : IEvent<EventHandler<LoadCompletedEventArgs>,
    LoadCompletedEventArgs>
JScript 支持使用事件,但不支持声明新事件。

注释

LoadAsyncLoadNextPartialSetAsync 方法的异步调用返回时,会引发 LoadCompleted 事件。 无论操作成功还是失败,都会引发此事件。

请参阅

参考

DataServiceCollection<T> 类

System.Data.Services.Client 命名空间