public void Deny_Unrestricted () { ObjectTagBuilder otb = new ObjectTagBuilder (); otb.AppendLiteralString (String.Empty); otb.AppendSubBuilder (new ControlBuilder ()); try { otb.Init (null, null, null, null, null, null); } catch (HttpException) { // missing id } }
/* * Process an Object tag, depending on its scope */ private void ProcessObjectTag(ObjectTagBuilder objectBuilder) { ObjectTagScope scope = objectBuilder.Scope; CheckObjectTagScope(ref scope); // Page and AppInstance are treated identically if (scope == ObjectTagScope.Page || scope == ObjectTagScope.AppInstance) { if (_pageObjectList == null) _pageObjectList = new ArrayList(); _pageObjectList.Add(objectBuilder); } else if (scope == ObjectTagScope.Session) { if (_sessionObjects == null) _sessionObjects = new HttpStaticObjectsCollection(); _sessionObjects.Add(objectBuilder.ID, objectBuilder.ObjectType, objectBuilder.LateBound); } else if (scope == ObjectTagScope.Application) { if (_applicationObjects == null) _applicationObjects = new HttpStaticObjectsCollection(); _applicationObjects.Add(objectBuilder.ID, objectBuilder.ObjectType, objectBuilder.LateBound); } else { Debug.Assert(false, "Unexpected scope!"); } }
protected void ProcessObjectTag (ObjectTagBuilder tag) { string fieldName = CreateFieldForObject (tag.Type, tag.ObjectID); CreatePropertyForObject (tag.Type, tag.ObjectID, fieldName, false); }
internal void Add (ObjectTagBuilder tag) { _Objects.Add (tag.ObjectID, new StaticItem (tag.Type)); }