Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llSetContentType C# (CSharp) Method

llSetContentType() public method

public llSetContentType ( Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLString id, Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLInteger type ) : void
id Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLString
type Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLInteger
return void
        public void llSetContentType(LSL_Key id, LSL_Integer type)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;

            string content_type = "text/plain";
            if (type == ScriptBaseClass.CONTENT_TYPE_TEXT)
                content_type = "text/plain";
            else if (type == ScriptBaseClass.CONTENT_TYPE_HTML)
                content_type = "text/html";

            if (m_UrlModule != null)
                m_UrlModule.SetContentType(id, content_type);
        }
LSL_Api