共用方式為


Link 建構函式 (Guid, String, String, Type, Boolean)

使用提供的 ID、名稱、儲存區、型別以及是否啟用連結的指示,初始化 Link 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.TestTools.Common
組件:  Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

語法

'宣告
Public Sub New ( _
    id As Guid, _
    name As String, _
    storage As String, _
    type As Type, _
    enabled As Boolean _
)
public Link(
    Guid id,
    string name,
    string storage,
    Type type,
    bool enabled
)
public:
Link(
    Guid id, 
    String^ name, 
    String^ storage, 
    Type^ type, 
    bool enabled
)
new : 
        id:Guid * 
        name:string * 
        storage:string * 
        type:Type * 
        enabled:bool -> Link
public function Link(
    id : Guid, 
    name : String, 
    storage : String, 
    type : Type, 
    enabled : boolean
)

參數

  • id
    型別:System.Guid
    可唯一識別連結的 GUID。
  • storage
    型別:System.String
    伺服器上之物件的相對路徑。
  • enabled
    型別:System.Boolean
    true 表示啟用連結,否則為 false。

.NET Framework 安全性

請參閱

參考

Link 類別

Link 多載

Microsoft.VisualStudio.TestTools.Common 命名空間