IWMSServer.Name (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSServer.Name (Visual Basic .NET)
The Name property retrieves the server name.
Syntax
String = IWMSServer.Name
Property Value
A String that contains the name of the server.
If this property fails, it returns an error number.
| Number | Description |
| 0x8007000E | There is insufficient memory to complete the function. |
Remarks
This property is read-only.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetServerName()
' Declare variables.
Dim Server As WMSServer
Dim strText As String
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the displayed name of the server.
strText = Server.Name
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
| Previous | Next |