---
UID: NF:certenroll.IX509PrivateKey.get_Length
title: IX509PrivateKey::get_Length (certenroll.h)
description: Specifies or retrieves the length, in bits, of the private key.
old-location: security\ix509privatekey_length_property.htm
tech.root: seccertenroll
ms.assetid: de25aa05-bd65-49a6-9cd1-e18522c9e190
ms.date: 12/05/2018
ms.keywords: IX509PrivateKey interface [Security],Length property, IX509PrivateKey.Length, IX509PrivateKey.get_Length, IX509PrivateKey::Length, IX509PrivateKey::get_Length, IX509PrivateKey::put_Length, Length property [Security], Length property [Security],IX509PrivateKey interface, certenroll/IX509PrivateKey::Length, certenroll/IX509PrivateKey::get_Length, certenroll/IX509PrivateKey::put_Length, get_Length, security.ix509privatekey_length_property
f1_keywords:
- certenroll/IX509PrivateKey.Length
dev_langs:
- c++
req.header: certenroll.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows Vista [desktop apps only]
req.target-min-winversvr: Windows Server 2008 [desktop apps only]
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: 
req.dll: CertEnroll.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- CertEnroll.dll
api_name:
- IX509PrivateKey.Length
- IX509PrivateKey.get_Length
- IX509PrivateKey.put_Length
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IX509PrivateKey::get_Length


## -description


The <b>Length</b> property specifies or retrieves the length, in bits, of the private key.  This property is web enabled for both input and output.

This property is read/write.


## -parameters


## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/certenroll/nn-certenroll-ix509privatekey">IX509PrivateKey</a>
 

 

