Item 属性 (String)
Gets a Policy object in the collection by name.
命名空间: Microsoft.SqlServer.Management.Dmf
程序集: Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)
语法
声明
Public ReadOnly Default Property Item ( _
name As String _
) As Policy
Get
用法
Dim instance As PolicyCollection
Dim name As String
Dim value As Policy
value = instance(name)
public Policy this[
string name
] { get; }
public:
property Policy^ default[String^ name] {
Policy^ get (String^ name);
}
member Item : Policy
JScript 支持使用索引属性,但不支持声明新索引属性。
参数
- name
类型:System. . :: . .String
A String value that specifies the position of the Policy object in the PolicyCollection collection.
属性值
类型:Microsoft.SqlServer.Management.Dmf. . :: . .Policy
A Policy object value that represents the policy that has the specified name.
注释
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。