ResolveAddressCompletedEventArgs(CivicAddress, Exception, Boolean, Object) 构造函数

定义

初始化 ResolveAddressCompletedEventArgs 的新实例。Initializes a new instance of 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 包含从纬度/经度位置解析的地址(如果解析成功)。The CivicAddress that contains the address resolved from the latitude/longitude location, if successful.

error
Exception

包含可能已在尝试解析地址时发生的任何异常的异常对象。The exception object for any exception that may have occurred during the attempt to resolve the address.

cancelled
Boolean

如果操作被取消,则为 true;否则为 falsetrue if the operation was cancelled; otherwise, false.

userState
Object

一个用于跟踪请求以解析地址的标记。A token for tracking the request to resolve the address. 如果未使用,则可能为 nullMay be null if not used.

注解

此构造函数是公共的,因此实现 ICivicAddressResolver 接口的类可以创建此对象以激发事件。This constructor is public so that classes implementing the ICivicAddressResolver interface can create this object to fire events.

适用于