Contact.SetContactPicture 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.
Overloads
SetContactPicture(Byte[]) |
Sets the contact's picture by using the specified byte array. |
SetContactPicture(Stream) |
Sets the contact's picture by using the specified stream. |
SetContactPicture(String) |
Sets the contact's picture by using the specified file. |
SetContactPicture(Byte[])
Sets the contact's picture by using the specified byte array.
public:
void SetContactPicture(cli::array <System::Byte> ^ content);
public void SetContactPicture (byte[] content);
Public Sub SetContactPicture (content As Byte())
Parameters
- content
- Byte[]
The bytes that make the picture.
Applies to
SetContactPicture(Stream)
Sets the contact's picture by using the specified stream.
public:
void SetContactPicture(System::IO::Stream ^ contentStream);
public void SetContactPicture (System.IO.Stream contentStream);
Public Sub SetContactPicture (contentStream As Stream)
Parameters
- contentStream
- Stream
The stream that contains the contact's picture.
Applies to
SetContactPicture(String)
Sets the contact's picture by using the specified file.
public:
void SetContactPicture(System::String ^ fileName);
public void SetContactPicture (string fileName);
Public Sub SetContactPicture (fileName As String)
Parameters
- fileName
- String
The name of the file that contains the contact's picture.