StructureEditor Namespace
ValidateLogin Method
Description
This API is used to login to teamcenter server.
Syntax
Visual Basic
Public Function ValidateLogin( _
   ByVal bstrUserName As String, _
   ByVal bstrUserPassword As String, _
   ByVal bstrUserGroup As String, _
   ByVal bstrUserRole As String, _
   ByVal bstrDBUrl As String _
) As Long
Parameters
bstrUserName
bstrUserPassword
bstrUserGroup
bstrUserRole
bstrDBUrl
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As StructureEditor.Application = Nothing
        Dim objStructureEditor As StructureEditor.SEECStructureEditor = Nothing
        Dim strUserName As String
        Dim strPassword As String
        Dim strGroup As String
        Dim strRole As String
        Dim strURL As String

        Try
            OleMessageFilter.Register()

            ' Start structure editor application
            objApplication = Activator.CreateInstance(Type.GetTypeFromProgID("StructureEditor.Application"))
            objStructureEditor = objApplication.SEECStructureEditor
            objApplication.Visible = True

            strUserName = "Username"
            strPassword = ""
            strGroup = ""
            strRole = ""
            strURL = "http://Servername:8085/tc"
            objStructureEditor.ValidateLogin(strUserName, strPassword, strGroup, strRole, strURL)

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            If Not objApplication Is Nothing Then
                ' Kill the instance of structure editor created
                objApplication.Quit()
            End If

            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

SEECStructureEditor Object  | SEECStructureEditor Members

Send comments on this topic.