IWMSPublishingPoint.Properties (Visual Basic .NET)
Previous | Next |
IWMSPublishingPoint.Properties (Visual Basic .NET)
The Properties property retrieves an IWMSNamedValues object containing a collection of name/value pairs for the publishing point.
Syntax
IWMSNamedValues = IWMSPublishingPoint.Properties
Property Value
An IWMSNamedValues object.
If this property fails, it returns an error number.
Number | Description |
0xC00D145AL | The publishing point was already removed. |
Remarks
This property is read-only. The IWMSNamedValues object contains a collection of IWMSNamedValue objects, each of which contains a name/value pair that provides attribute information about a server or publishing point.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetProperties() ' Declare variables. Dim Server As WMSServer Dim PubPoints As IWMSPublishingPoints Dim PubPoint As IWMSPublishingPoint Dim Properties As IWMSNamedValues Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve the IWMSPublishingPoints object. PubPoints = Server.PublishingPoints ' Retrieve information about each publishing point. For Each PubPoint In PubPoints ' Retrieve the IWMSNamedValues object ' containing publishing point properties. Properties = PubPoint.Properties Next Catch excCom As COMException ' TODO: Handle COM exceptions. Catch exc As Exception ' TODO: Handle errors. Finally ' TODO: Clean-up code goes here. End Try End Sub
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
- IWMSNamedValue Object (Visual Basic .NET)
- IWMSNamedValues Object (Visual Basic .NET)
- IWMSPublishingPoint Object (Visual Basic .NET)
Previous | Next |