Imports 요소(IntelliSense 코드 조각)

개별 Import 요소를 그룹화합니다.

<Imports>
    <Import>... </Import>
<Imports>

특성 및 요소

다음 단원에서는 특성, 자식 요소 및 부모 요소에 대해 설명합니다.

특성

없음

자식 요소

요소

설명

가져오기

선택적 요소입니다.

코드 조각에 대해 가져온 네임스페이스가 포함되어 있습니다. Imports 요소에는 Import 요소가 0개 이상 있을 수 있습니다.

부모 요소

요소

설명

Snippet

코드 조각에 대한 참조, 가져오기, 선언 및 코드가 포함되어 있습니다.

설명

Imports 요소는 Visual Basic 프로젝트에서만 지원됩니다.

예제

다음 예제에서는 System.DataSystem.Xml 네임스페이스를 가져오는 코드 조각을 보여 줍니다.

<CodeSnippets xmlns="https://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <!-- Insert Header information here. -->
        </Header>
        <Snippet>
            <Imports>
                <Import>
                    <Namespace>System.Data</Namespace>
                </Import>
                <Import>
                    <Namespace>System.Xml</Namespace>
                </Import>
            </Imports>
            <Declarations>
                <!-- Insert literal and object declarations here. -->
            </Declarations>
            <Code Language="VB">
                <!-- Insert code here. -->
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>

참고 항목

개념

코드 조각 스키마 참조