IWMSContentDescriptionList::SetValueOnAllDescriptions

banner art

Previous Next

IWMSContentDescriptionList::SetValueOnAllDescriptions

The SetValueOnAllDescriptions method specifies the value of a specific property in all the content description contexts in the description list.

Syntax

  HRESULT SetValueOnAllDescriptions(
  LPCWSTR  pstrName,
  long  lNameHint,
  VARIANT  Value,
  long  lOptions
);

Parameters

pstrName

[in] LPCWSTR specifying the name portion of the name-value pair in the context.

lNameHint

[in] long containing an optional key that can be used to more efficiently access a value.

Value

[in] VARIANT value for the context.

lOptions

[in] Reserved for future use.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Example Code

VARIANT Value;
VariantInit( &Value );
Value.vt = VT_LPWSTR;

if( NULL != pwszPlaylistEntryUrl )
{
    // Set the public entry url.
    Value.bstrVal = pwszPlaylistEntryUrl;
    hr = pContentDescriptionList->SetValueOnAllDescriptions(
                          WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_URL,
                          WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_URL_ID,
                          Value,
                          0);
    if (FAILED(hr)) goto EXIT;
}

EXIT:
    // TODO: Release temporary objects.
    Value.bstrVal = NULL;
    Value.vt = VT_EMPTY;
    pwszPlaylistEntryUrl = NULL;

Requirements

Header: streamdescription.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also

Previous Next