共用方式為


EnvironmentVariableCollection.Item 屬性 (String)

Gets the environment variable from the environment variable collection based upon the specified name.

命名空間:  Microsoft.SqlServer.Management.IntegrationServices
組件:  Microsoft.SqlServer.Management.IntegrationServices (在 Microsoft.SqlServer.Management.IntegrationServices.dll 中)

語法

'宣告
Public ReadOnly Default Property Item ( _
    name As String _
) As EnvironmentVariable 
    Get
'用途
Dim instance As EnvironmentVariableCollection 
Dim name As String 
Dim value As EnvironmentVariable 

value = instance(name)
public EnvironmentVariable this[
    string name
] { get; }
public:
property EnvironmentVariable^ default[String^ name] {
    EnvironmentVariable^ get (String^ name);
}
member Item : EnvironmentVariable
JScript 支援索引屬性的使用,但不支援新屬性的宣告。

參數

  • name
    型別:System.String
    The name of the environment variable.

屬性值

型別:Microsoft.SqlServer.Management.IntegrationServices.EnvironmentVariable
The specified environment variable from the environment variable collection.

請參閱

參考

EnvironmentVariableCollection 類別

Item 多載

Microsoft.SqlServer.Management.IntegrationServices 命名空間