---
UID: NF:d3d11.ID3D11DeviceContext.GetType
title: ID3D11DeviceContext::GetType (d3d11.h)
description: Gets the type of device context.
old-location: direct3d11\id3d11devicecontext_gettype.htm
tech.root: direct3d11
ms.assetid: fefe2cd7-26c1-4165-9c94-8843571f8824
ms.date: 12/05/2018
ms.keywords: 71b462ef-31c2-4015-fac5-a904701671c6, GetType, GetType method [Direct3D 11], GetType method [Direct3D 11],ID3D11DeviceContext interface, ID3D11DeviceContext interface [Direct3D 11],GetType method, ID3D11DeviceContext.GetType, ID3D11DeviceContext::GetType, d3d11/ID3D11DeviceContext::GetType, direct3d11.id3d11devicecontext_gettype
f1_keywords:
- d3d11/ID3D11DeviceContext.GetType
dev_langs:
- c++
req.header: d3d11.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: D3d11.lib
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- d3d11.lib
- d3d11.dll
api_name:
- ID3D11DeviceContext.GetType
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID3D11DeviceContext::GetType


## -description


Gets the type of <a href="https://docs.microsoft.com/windows/desktop/direct3d11/overviews-direct3d-11-devices-intro">device context</a>.


## -parameters






## -returns



Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/d3d11/ne-d3d11-d3d11_device_context_type">D3D11_DEVICE_CONTEXT_TYPE</a></b>

A member of <a href="https://docs.microsoft.com/windows/desktop/api/d3d11/ne-d3d11-d3d11_device_context_type">D3D11_DEVICE_CONTEXT_TYPE</a> that indicates the type of device context.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d3d11/nn-d3d11-id3d11devicecontext">ID3D11DeviceContext</a>
 

 

