Microsoft.JScript.GlobalScope.GetLocalField C# (CSharp) 메소드

GetLocalField() 공개 메소드

public GetLocalField ( String name ) : FieldInfo
name String
리턴 System.Reflection.FieldInfo
      public override FieldInfo GetLocalField(String name){
        return this.GetField(name, BindingFlags.Instance|BindingFlags.Static|BindingFlags.Public|BindingFlags.DeclaredOnly);
      }

Usage Example

예제 #1
0
        public static void JScriptPackage(string rootName, VsaEngine engine)
        {
            GlobalScope globalScope = ((IActivationObject)engine.ScriptObjectStackTop()).GetGlobalScope();

            if (globalScope.GetLocalField(rootName) == null)
            {
                FieldInfo info = globalScope.AddNewField(rootName, Namespace.GetNamespace(rootName, engine), FieldAttributes.Literal | FieldAttributes.Public);
            }
        }
All Usage Examples Of Microsoft.JScript.GlobalScope::GetLocalField