ResolveAddressCompletedEventArgs 构造函数

定义

初始化 ResolveAddressCompletedEventArgs 的新实例。

public:
 ResolveAddressCompletedEventArgs(System::Device::Location::CivicAddress ^ address, Exception ^ error, bool cancelled, System::Object ^ userState);
public ResolveAddressCompletedEventArgs (System.Device.Location.CivicAddress address, Exception error, bool cancelled, object userState);
new System.Device.Location.ResolveAddressCompletedEventArgs : System.Device.Location.CivicAddress * Exception * bool * obj -> System.Device.Location.ResolveAddressCompletedEventArgs
Public Sub New (address As CivicAddress, error As Exception, cancelled As Boolean, userState As Object)

参数

address
CivicAddress

CivicAddress 包含从纬度/经度位置解析的地址(如果解析成功)。

error
Exception

包含可能已在尝试解析地址时发生的任何异常的异常对象。

cancelled
Boolean

如果操作被取消,则为 true;否则为 false

userState
Object

一个用于跟踪请求以解析地址的标记。 如果未使用,则可能为 null

注解

此构造函数是公共的,因此实现 接口的 ICivicAddressResolver 类可以创建此对象来触发事件。

适用于