Share via


IVsSettingsWriter.WriteSettingBytes(String, Byte[], Int32) Method

Definition

Stores the values of an array in the Visual Studio settings file.

public:
 int WriteSettingBytes(System::String ^ pszSettingName, cli::array <System::Byte> ^ pSettingValue, int lDataLength);
public:
 int WriteSettingBytes(Platform::String ^ pszSettingName, Platform::Array <byte> ^ pSettingValue, int lDataLength);
int WriteSettingBytes(std::wstring const & pszSettingName, std::Array <byte> const & pSettingValue, int lDataLength);
public int WriteSettingBytes (string pszSettingName, byte[] pSettingValue, int lDataLength);
abstract member WriteSettingBytes : string * byte[] * int -> int
Public Function WriteSettingBytes (pszSettingName As String, pSettingValue As Byte(), lDataLength As Integer) As Integer

Parameters

pszSettingName
String

[in] String uniquely identifying the data element to be stored.

pSettingValue
Byte[]

[in, size_is(lDataLength)] Buffer to be stored as the specified data element of the Visual Studio settings file.

lDataLength
Int32

[in] Number of byte values to be stored.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to