IWMSNamedValues.Count (Visual Basic .NET)
Previous | Next |
IWMSNamedValues.Count (Visual Basic .NET)
The Count property retrieves the number of name-value pairs contained in the IWMSNamedValues collection.
Syntax
Integer = IWMSNamedValues.Count
Property Value
Integer containing the number of name-value pairs.
Remarks
This property is read-only.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetCount() ' Declare variables. Dim Server As WMSServer Dim NamedValues As IWMSNamedValues Dim NamedValue As IWMSNamedValue Dim iCount As Integer Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve the IWMSNamedValues object ' containing descriptive information about the server. NamedValues = Server.Properties ' Retrieve the total count of name-value pairs. iCount = NamedValues.Count 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)
- IWMSNamedValues.length (Visual Basic .NET)
Previous | Next |