다음을 통해 공유


__identifier(C++/CLI)

Visual C++ 키워드를 사용 하는 식별자로 사용 합니다.

모든 플랫폼

구문

__identifier(Visual_C++_keyword)

설명

사용은 __identifier 키워드를 키워드가 아닌 식별자에 대 한 수 있지만 스타일의 문제로 것이 좋습니다.

Windows 런타임

hzc8ytsz.collapse_all(ko-kr,VS.110).gif요구 사항

컴파일러 옵션:/ZW

hzc8ytsz.collapse_all(ko-kr,VS.110).gif예제

예제

다음 예제에서는 클래스 라는 template C# 만들고 DLL로 배포 합니다.Visual C++ 프로그램을 사용 하는 template 클래스는 __identifier 키워드 숨깁니다 사실을 template 표준 C++ 키워드입니다.

// identifier_template.cs
// compile with: /target:library
public class template {
   public void Run() { }
}

// keyword__identifier.cpp
// compile with: /ZW
#using <identifier_template.dll>
int main() {
   __identifier(template)^ pTemplate = ref new __identifier(template)();
   pTemplate->Run();
}

공용 언어 런타임

설명

__identifier 키워드를 사용할 수 있는 /clr/clr:oldSyntax 컴파일러 옵션.

hzc8ytsz.collapse_all(ko-kr,VS.110).gif요구 사항

컴파일러 옵션:/clr

hzc8ytsz.collapse_all(ko-kr,VS.110).gif예제

예제

다음 예제에서는 클래스 라는 template C# 만들고 DLL로 배포 합니다.Visual C++ 프로그램을 사용 하는 template 클래스는 __identifier 키워드 숨깁니다 사실을 template 표준 C++ 키워드입니다.

// identifier_template.cs
// compile with: /target:library
public class template {
   public void Run() { }
}

// keyword__identifier.cpp
// compile with: /clr
#using <identifier_template.dll>

int main() {
   __identifier(template) ^pTemplate = gcnew __identifier(template)();
   pTemplate->Run();
}

참고 항목

개념

런타임 플랫폼의 구성 요소 확장

런타임 플랫폼의 구성 요소 확장