IVsWritableSettingsStore.SetBinary(String, String, UInt32, Byte[]) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Define o valor de uma propriedade binária com a matriz de bytes especificada. Se o tipo de dados anterior da propriedade não for SettingsType_Binary, esse método o substituirá. Se a propriedade não existir, ela criará uma
public:
int SetBinary(System::String ^ collectionPath, System::String ^ propertyName, System::UInt32 byteLength, cli::array <System::Byte> ^ pBytes);
public:
int SetBinary(Platform::String ^ collectionPath, Platform::String ^ propertyName, unsigned int byteLength, Platform::Array <byte> ^ pBytes);
int SetBinary(std::wstring const & collectionPath, std::wstring const & propertyName, unsigned int byteLength, std::Array <byte> const & pBytes);
public int SetBinary (string collectionPath, string propertyName, uint byteLength, byte[] pBytes);
abstract member SetBinary : string * string * uint32 * byte[] -> int
Public Function SetBinary (collectionPath As String, propertyName As String, byteLength As UInteger, pBytes As Byte()) As Integer
Parâmetros
- collectionPath
- String
no O caminho para a coleção.
- propertyName
- String
no O nome da propriedade.
- byteLength
- UInt32
no O número de bytes a serem gravados.
- pBytes
- Byte[]
no A matriz de bytes a ser gravada.
Retornos
Retorna S_OK se a propriedade foi definida. Se a coleção não existir, o método retornará E_INVALIDARG .
Comentários
Se byteLength for 0, pBytes pode ser NULL, mas, caso contrário, deve apontar para uma matriz de bytes de tamanho especificado.