IVsWritableSettingsStore::SetBinary Method (String^, String^, UInt32, array<Byte>^)
Visual Studio 2015
Sets the value of a binary property with the specified byte array. If the previous data type of the property is not SettingsType_Binary, this method overwrites it. If the property does not exist, it creates one
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
int SetBinary( String^ collectionPath, String^ propertyName, unsigned int byteLength, array<unsigned char>^ pBytes )
Parameters
- collectionPath
-
Type:
System::String^
[in] The path to the collection.
- propertyName
-
Type:
System::String^
[in] The name of the property.
- byteLength
-
Type:
System::UInt32
[in] The number of bytes to write.
- pBytes
-
Type:
array<System::Byte>^
[in] The array of bytes to write.
Return Value
Type: System::Int32Returns T:Microsoft.VisualStudio.VSConstants.S_OK if the property was set. If the collection does not exist, the method returns T:Microsoft.VisualStudio.VSConstants.E_INVALIDARG.
If byteLength is 0, then pBytes can be null, but otherwise it should point to a BYTE array of specified size.
Show: