Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetValueOnAllDescriptions method specifies the value of a specific property in all the content description contexts in the description list.
void IWMSContentDescriptionList.SetValueOnAllDescriptions(
string pstrName,
int lNameHint,
object Value,
int lOptions
);
Arguments
string specifying the name portion of the name-value pair in the context. |
|
int containing an optional key that can be used to more efficiently access a value. |
|
object containing the value for the context. |
|
Reserved for future use. |
Return Value
This method does not return a value.
Example
Guid ContextGuid = typeof(IWMSContext).GUID;
Guid ContentDescListGuid = typeof(IWMSContentDescriptionList).GUID;
IWMSContext Context;
IWMSContentDescriptionList ContentDescList;
IntPtr pUnknown;
try
{
m_ClassFactory.AllocIWMSContext(ref ContextGuid,
WMS_CONTEXT_TYPE.WMS_USER_CONTEXT_TYPE,
pUserContext, out pUnknown);
Context = (IWMSContext)Marshal.GetTypedObjectForIUnknown(pUnknown,
typeof(IWMSContext));
m_ClassFactory.CreateInstance(ref ContentDescListGuid, out pUnknown);
ContentDescList =
(IWMSContentDescriptionList)Marshal.GetTypedObjectForIUnknown(
pUnknown, typeof(IWMSContentDescriptionList));
Context.SetStringValue(WMSDefines.WMS_CONTENT_DESCRIPTION_TITLE,
WMSDefines.WMS_CONTENT_DESCRIPTION_TITLE_ID,
"My Title", 0);
Context.SetLongValue(WMSDefines.WMS_CONTENT_DESCRIPTION_NO_SKIP,
WMSDefines.WMS_CONTENT_DESCRIPTION_NO_SKIP_ID,
1, 0);
ContentDescList.AppendDescription("en-us", Context);
ContentDescList.SetValueOnAllDescriptions("author", 2, "Author", 0);
}
catch( Exception e )
{
// TODO: Handle exceptions.
}
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.