ISpaceReservationManager.AddAgent 方法
將空間保留區代理新增到由此管理員管理的代理程式的清單。
命名空間: Microsoft.VisualStudio.Text.Editor
組件: Microsoft.VisualStudio.Text.UI.Wpf (在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
語法
'宣告
Sub AddAgent ( _
agent As ISpaceReservationAgent _
)
void AddAgent(
ISpaceReservationAgent agent
)
void AddAgent(
ISpaceReservationAgent^ agent
)
abstract AddAgent :
agent:ISpaceReservationAgent -> unit
function AddAgent(
agent : ISpaceReservationAgent
)
參數
agent
類型:Microsoft.VisualStudio.Text.Editor.ISpaceReservationAgent要加入的代理程式。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。