IWMSContext.RemoveAllValues (C#)
Previous | Next |
IWMSContext.RemoveAllValues (C#)
The RemoveAllValues method removes all values from the context.
Syntax
Parameters
This method takes no parameters.
Return Values
This method does not return a value.
Example Code
Guid ContextGuid = typeof(IWMSContext).GUID; IWMSContext Context; 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)); 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); Context.RemoveAllValues(); } 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.
See Also
Previous | Next |