Compartilhar via


Restrictions on string lengths

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The Source Control Plug-in API limits the lengths of strings used in various functions.

String length values

Constant Value
SCC_NAME_LEN 31
SCC_AUXLABEL_LEN 31
SCC_USER_LEN 31
SCC_PRJPATH_LEN 300

Note

Length does not include the terminating null. Other constants with a "_SIZE" suffix instead of "_LEN" do include space for the terminating null.

Constant Value
SCC_NAME_SIZE 32
SCC_AUXLABEL_SIZE 32
SCC_USER_SIZE 32
SCC_PRJPATH_SIZE 301

See also