StructureEditor Namespace
ValidateLogin Method
Specifies the UserName of the user to authenticate.
Specifies the password of the user to authenticate.
Specifies the group to which the user belongs. The default group is 'dba'.
Specifies the Role of the User in teamcenter.
Specifies the server name to which the user wants to connect.
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
Specifies the UserName of the user to authenticate.
bstrUserPassword
Specifies the password of the user to authenticate.
bstrUserGroup
Specifies the group to which the user belongs. The default group is 'dba'.
bstrUserRole
Specifies the Role of the User in teamcenter.
bstrDBUrl
Specifies the server name to which the user wants to connect.
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

ISEECStructureEditor Object  | ISEECStructureEditor Members