次の方法で共有


Imports.Item(Int32) Method

Definition

Returns an indexed member of the Imports object. The Item method is the default method for the Imports object.

public:
 System::String ^ Item(int lIndex);
public:
 Platform::String ^ Item(int lIndex);
std::wstring Item(int lIndex);
[System.Runtime.InteropServices.DispId(0)]
public string Item (int lIndex);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : int -> string
Public Function Item (lIndex As Integer) As String

Parameters

lIndex
Int32

Required. A one-based index into Imports object.

Returns

Returns an imports statement string by its position in the collection.

Attributes

Examples

See Imports.

Remarks

The Item method is retrieves the imports statement. To change an imports statement, delete the current one with the Remove method and add a new one with the Add method.

Applies to