DkmProductionAgent 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
DkmProductionAgent 表示使用 DkmProductionConnection 的 StartAgent 方法启动的代理进程。
此 API 是在 Visual Studio 15 Update 2 (VS15Update2) 中引入的。
public ref class DkmProductionAgent : Microsoft::VisualStudio::Debugger::DkmDataContainer, IDisposable
[System.Runtime.InteropServices.Guid("ebfc36fd-443b-40ed-3060-ccf3335f1025")]
public class DkmProductionAgent : Microsoft.VisualStudio.Debugger.DkmDataContainer, IDisposable
[<System.Runtime.InteropServices.Guid("ebfc36fd-443b-40ed-3060-ccf3335f1025")>]
type DkmProductionAgent = class
inherit DkmDataContainer
interface IDisposable
Public Class DkmProductionAgent
Inherits DkmDataContainer
Implements IDisposable
- 继承
- 属性
- 实现
属性
| AgentCommand |
用于启动此代理的命令。
|
| IsUnloaded |
如果为此对象引发了 "已卸载" 事件,则返回 true (例如: DkmThread:: Unload 称为) 或对象已关闭。 请注意,在将此状态视为不同步时,必须使用 "小心",返回的状态在读取后可能不再准确。 (继承自 DkmDataContainer) |
| ProductionConnection |
使用此代理创建的 DkmProductionConnection 对象。
|
| UniqueId |
唯一标识此 UniqueId 对象的 Guid。 当事件调用 SendToVsService 时,会将此作为源 id 进行传递。 此 API 是在 Visual Studio 15 Update 2 (VS15Update2) 中引入的。 |
| VsService |
要向 stdout 发送写入内容的 VS 服务的 Guid。
|
方法
| Close() |
调用此方法关闭对象。 关闭关联的 DkmProductionConnection 对象时,DkmProductionAgent 对象会自动关闭。 此 API 是在 Visual Studio 15 Update 2 (VS15Update2) 中引入的。 |
| GetDataItem<T>() |
获取已添加到此容器实例中的 "t" 的实例。 如果此容器不包含 "t",则此函数将返回 null。 (继承自 DkmDataContainer) |
| RemoveDataItem<T>() |
从此容器中删除 "t" 的实例。 通常不需要调用此方法,因为当关闭对象时,数据容器将自动清空。 (继承自 DkmDataContainer) |
| SendMessage(Byte[]) |
向生产代理发送消息。
|
| SetDataItem<T>(DkmDataCreationDisposition, T) |
在数据容器中放置一个新项。 (继承自 DkmDataContainer) |
显式接口实现
| IDisposable.Dispose() |
内容待定。 |