다음을 통해 공유


Platform::Guid 값 클래스

Windows 런타임 형식 시스템의 [GUID](/windows/win32/api/guiddef/ns-guiddef-guid 형식을 나타냅니다.

구문

public value struct Guid

멤버

Platform::Guid에는 Equals()GetHashCode()Platform::Object 클래스에서 파생된 메서드와 ToString()GetTypeCode() Platform::Type 클래스에서 파생된 메서드가 있습니다. Platform::Guid 에는 다음 멤버도 있습니다.

멤버 설명
Guid 의 새 인스턴스를 초기화합니다 Platform::Guid.
연산자== Equals 연산자입니다.
operator!= Not equals 연산자입니다.
operator< 연산자보다 작습니다.
operator() Platform::GuidGUID로 변환합니다.

설명

Platform::Guid항목을 생성하려면 Windows::Foundation::GuidHelper::CreateNewGuid 정적 메서드를 사용합니다.

요구 사항

지원되는 최소 클라이언트: Windows 8

지원되는 최소 서버: Windows Server 2012

네임스페이스: Platform

메타데이터: platform.winmd

Guid::Guid 생성자

의 새 인스턴스를 초기화합니다 Platform::Guid.

구문

Guid(
    unsigned int a,
    unsigned short b,
    unsigned short c,
    unsigned char d,
    unsigned char e,
    unsigned char f,
    unsigned char g,
    unsigned char h,
    unsigned char i,
    unsigned char j,
    unsigned char k );

Guid(GUID m);

Guid(
    unsigned int a,
    unsigned short b,
    unsigned short c,
    Array<unsigned char>^ n );

매개 변수

a
의 처음 4바이트 GUID입니다.

b
의 다음 2바이트 GUID입니다.

c
의 다음 2바이트 GUID입니다.

d
의 다음 바이트입니다 GUID.

e
의 다음 바이트입니다 GUID.

f
의 다음 바이트입니다 GUID.

g
의 다음 바이트입니다 GUID.

시간
의 다음 바이트입니다 GUID.

i
의 다음 바이트입니다 GUID.

J
의 다음 바이트입니다 GUID.

k
의 다음 바이트입니다 GUID.

m
형식의 GUID GUID 구조체입니다.

n
8바이트 GUID다시 기본.

Guid::operator== 연산자

Platform::Guid 인스턴스가 같은지 비교합니다.

구문

static bool Platform::Guid::operator==(Platform::Guid guid1, Platform::Guid guid2);

매개 변수

guid1
비교할 첫 번째 Platform::Guid입니다.

guid2
비교할 두 번째 Platform::Guid입니다.

Return Value

Platform::Guid 인스턴스가 같으면 True입니다.

설명

Windows::Foundation::GuidHelper::Equals 정적 메서드 대신 연산자를 사용하는 == 것이 좋습니다.

Guid::operator!= 연산자

같지 않음에 대한 두 Platform::Guid 인스턴스를 비교합니다.

구문

static bool Platform::Guid::operator!=(Platform::Guid guid1, Platform::Guid guid2);

매개 변수

guid1
비교할 첫 번째 Platform::Guid입니다.

guid2
비교할 두 번째 Platform::Guid입니다.

Return Value

Platform::Guid 인스턴스가 같지 않으면 True입니다.

Guid::operator< 연산자

순서 지정을 위해 두 인스턴스 Platform::Guid 를 비교합니다.

구문

static bool Platform::Guid::operator<(Platform::Guid guid1, Platform::Guid guid2);

매개 변수

guid1
비교할 첫 번째 Platform::Guid입니다.

guid2
비교할 두 번째 Platform::Guid입니다.

Return Value

guid1이 guid2 앞에 정렬되면 True입니다. 순서는 각각 Platform::Guid 32비트 부호 없는 4개의 값 배열인 것처럼 처리한 후 사전순입니다. 이는 SQL Server 또는 .NET Framework에서 사용하는 순서가 아니며 문자열 표현에 의한 어휘 순서와 동일하지도 않습니다.

이 연산자는 C++ 표준 라이브러리에서 개체를 더 쉽게 사용할 수 있도록 Guid 제공됩니다.

Guid::operator() 연산자

암시적으로 GUID 구조체로 변환합니다Platform::Guid.

구문

const GUID& Platform::Guid::operator();

Return Value

GUID 구조체입니다.

참고 항목

Platform 네임스페이스