IVsWritableSettingsStore.GetBinary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the value of a property of type SettingsType_Binary.
int GetBinary(std::wstring const & collectionPath, std::wstring const & propertyName, unsigned int byteLength, std::Array <byte> const & pBytes, std::Array <unsigned int> const & actualByteLength);
public int GetBinary (string collectionPath, string propertyName, uint byteLength, byte[] pBytes, uint[] actualByteLength);
abstract member GetBinary : string * string * uint32 * byte[] * uint32[] -> int
Public Function GetBinary (collectionPath As String, propertyName As String, byteLength As UInteger, Optional pBytes As Byte(), Optional actualByteLength As UInteger()) As Integer
Parameters
- collectionPath
- String
[in] The path of the collection.
- propertyName
- String
[in] The property name.
- byteLength
- UInt32
[in] The size in bytes of pBytes
. Can be 0 if the caller wants to know the size of the value without copying it..
- pBytes
- Byte[]
[out] The buffer to fill with the property. Can be null if the caller wants to know the size of the buffer without copying it.
- actualByteLength
- UInt32[]
[out] The actual number of bytes returned.
Returns
Returns S_OK if the property was returned, S_FALSE if the property does not exist or E_INVALIDARG if the property type is not binary.
Implements
Remarks
This method is safe to access from any thread.