IWMEncDisplayInfo.Copyright

Windows Media Encoder SDK banner art

The Copyright property specifies and retrieves the copyright information for the content being encoded.

Syntax

string = IWMEncDisplayInfo.Copyright;
IWMEncDisplayInfo.Copyright = string;

Parameters

This property takes no parameters.

Property Value

A String containing the copyright information. If this property fails, it returns an error number.

Number Description
0xC00D0011 This property cannot be set if the encoder engine is running.

Example Code

using WMEncoderLib;

try
{
// Create a WMEncoder object.
WMEncoder Encoder;
Encoder = new WMEncoder();

// Retrieve an IWMEncDisplayInfo object.
IWMEncDisplayInfo Descr;
Descr = Encoder.DisplayInfo;

// Declare string variables.
string sAuthor;
string sCopyright;
string sDescription;
string sRating;
string sTitle;

// Set the IWMEncDisplayInfo properties.
Descr.Author = "Content author's name.";
Descr.Copyright = "Copyright 2002. All rights reserved.";
Descr.Description = "Description of the encoded content.";
Descr.Rating = "Not applicable.";
Descr.Title = "Title of the encoded content.";

// Retrieve the IWMEncDisplayInfo properties.
sAuthor = Descr.Author;
sCopyright = Descr.Copyright;
sDescription = Descr.Description;
sRating = Descr.Rating;
sTitle = Descr.Title;
}

catch (Exception e)
{
     // TODO: Handle exceptions.
}

Requirements

Reference: Windows Media Encoder

Namespace: WMEncoderLib

Assembly: Interop.WMEncoderLib.dll

Library: WMEncoderLib.dll

See Also