OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.osGetNotecard C# (CSharp) Method

osGetNotecard() public method

Get an entire notecard at once.
Instead of using the LSL Dataserver event to pull notecard data line by line, this will simply read the entire notecard and return its data as a string. Warning - due to the synchronous method this function uses to fetch assets, its use may be dangerous and unreliable while running in grid mode.
public osGetNotecard ( string name ) : string
name string Name of the notecard or its asset id
return string
        public string osGetNotecard(string name)
        {
            CheckThreatLevel(ThreatLevel.VeryHigh, "osGetNotecard");
            m_host.AddScriptLPS(1);

            string text = LoadNotecard(name);

            if (text == null)
            {
                OSSLShoutError("Notecard '" + name + "' could not be found.");
                return "ERROR!";
            }
            else
            {
                return text;
            }
        }
OSSL_Api