Click or drag to resize

LicenseManagerLicenseServer Method (String, Int32)

Set License Server

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public LicenseResults LicenseServer(
	string ip,
	int port
)

Parameters

ip
Type: SystemString
License Server Ip Address
port
Type: SystemInt32
License Server Port

Return Value

Type: LicenseResults
Result
Examples
C#
private void CreateVIZCore3D()
{
    vizcore3d.OnInitializedVIZCore3D += VIZCore3D_OnInitializedVIZCore3D;
}

private void VIZCore3D_OnInitializedVIZCore3D(object sender, EventArgs e)
{
    VIZCore3D.NET.Data.LicenseResults result = vizcore3d.License.LicenseServer("127.0.0.1", 8901);
    if (result != Data.LicenseResults.SUCCESS)
    {
        MessageBox.Show(string.Format("LICENSE CODE : {0}", result.ToString()), "VIZCore3D.NET", MessageBoxButtons.OK, MessageBoxIcon.Error);
        return;
    }
}
See Also