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。
- name
型別:System.String
連結名稱。
- storage
型別:System.String
伺服器上之物件的相對路徑。
- type
型別:System.Type
Type ,指出目標物件的類型。
- enabled
型別:System.Boolean
true 表示啟用連結,否則為 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。