NewTOAPIA.Net.Rtp.SdesData.SetTool C# (CSharp) Method

SetTool() public method

Flag indicating whether you want the tool field to be set or not
public SetTool ( bool wantSet ) : void
wantSet bool
return void
        public void SetTool(bool wantSet)
        {
            string tool = null;

            if (wantSet)
            {
                AssemblyName exe = Assembly.GetEntryAssembly().GetName();
                AssemblyName rtp = Assembly.GetExecutingAssembly().GetName();

                tool = exe.Name + " v" + exe.Version + ", ";
                tool += rtp.Name + " v" + rtp.Version;
            }

            SetProperty(tool, SDESType.TOOL);
        }