Windows script control windows server 2012

Вызов 32-битных COM-объектов на стороне 64-битного сервера 1С

ОС: Windows Server 2012R2. Сервер 1С x64.Клиент 1С v8.3.5.1186

Модуль: ScrptCtrl = Новый COMОбъект(“MSScriptControl.ScriptControl”);
Выдает ошибку:
<ОбщийМодуль.Хттп.Модуль(55)>: Error calling constructor (COMОбъект): -2147221164(0x80040154): Класс не зарегистрирован.

Скачал Windows Script Control
Зарегистрировал: regsvr32
Не помогло.
Решение:

  1. Запустил консоль “Службы компонентов” (%windir%\system32\comexp.msc)
  2. В ветке Приложения COM+ добавл новое приложение: Создать -> Приложение
  3. На вопрос “Установка или создание нового приложения” – выбрал “Создать новое приложение” .
  4. Имя нового приложения лучше написать чтобы было понятно о чем речь: “1С_ScriptControl”, способ активации – “серверное приложение”.
  5. Учетная запись для запуска приложения: Локальная служба – встроенная учетная запись службы.
  6. При запросе членов Роли CreatorOwner, помимо существующей учетной записи, добавил туда System и учетную запись под которой работает сервер 1С.
  7. В ветке созданного приложения перешел на “Компоненты” и создал компонент: Создать -> Компонент
  8. В мастере “Установка компонентов COM+” , выбрал “Импорт уже зарегистрированных компонентов” . На шаге “Выбор компонентов для импорта” поставил флаг 32 разряда, нашел “MSScriptControl”

Windows script control windows server 2012

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Asked by:

Question

We recently replaced some Windows 2008 R2 EE servers with Windows Server 2012 DCE servers.

We use GPO User Policy to kick off logon scripts written in VBS to map some drives depending on group membership.

The logon script executes correctly on all remaining Windows 2008 R2 Servers and Windows XP and Windows 7 clients.

It does not show any mapped drives in File Explorer on Windows Server 2012. But, if I use a sub-dialog that engages the File Explorer shell, such as when deciding on the location for a new Hyper-V machine location, I can see all the drives that are mapped.

So at first, it appeared the mappings were not executing at all, but now it appears that they are simply hidden from view in File Explorer and most other ways to access the files system.

I remember with Windows Server 2008 R2 and Windows 7 (and Vista) you had to EnableLinkedConnections in the registry at the key:

Add a key EnableLinkedConnections Setting a DWORD value to = 1

I am not sure if this still applies in Windows Server 2012 and also while that key technically exists, the key is named policies with a lowercase ‘p’.

Although that is a small thing, sometimes registry keys are case sensitive to the dll or application that is reading them or writing them.

Any advice would be appreciated.

All replies

It is NOT a problem with Group Policy. Group Policy works completely correctly. The problem is Windows Server 2012 DOES NOT reflect the execution of VBS logon scripts that are being successfully delivered via Group Policy.

The mention of Group Policy was merely to establish the delivery mechanism. The script execute successfully when executed manually. The seem to have been run as, if you would please read the post completely, you would see that in other File Explorer shell dialogs, the mapped drives are showing, but in File Explorer application they are not.

Please read the entire post. If it needs to be put into another forum I will reports, but it is NOT a GROUP POLICY issue.

Regarding mapping drive with Group Policy setting, please also refer to the method about GPP:

Using Group Policy Preferences to Map Drives Based on Group Membership

Nicholas Li
TechNet Community Support

As much as I appreciate the replies folks, please read the problem before commenting.

1. The GPO is mentioned because it is what initiates a VBS logon script. IT WORKS FOR ALL CLIENTS XP, and Windows 7 (Since they are all modified with the registry key setting ‘EnableLinkedConnections=1’ DWORD. I suspect this has to be applied to Windows Server 2012/Windows 8 for the script to execute, but on Windows Server 2012, the key name is slightly different in capitalization and I am not sure it applies or should be tampered with.

2. If the above is not the issue, the script will execute with no problem when run manually after logon but does not show any mapped drives in File Explorer when run by GPO. It does however without manually executing the script (GPO invoked) show mapped drives when using a browse dialog, as in the case of selecting a folder for a Hyper-V child, but not in File Explorer.

3. I am not experiencing any problem with group policy and choose to use logon scripts written in VBS to setup the initial user environment. I plan to convert this to powershell eventually. But right now they are VBS scripts.

If you need me to elaborate, please let me know.

Script Control Класс

Определение

Предоставляет абстрактный базовый класс для элемента управления сценария. Provides an abstract base class for a script control.

Комментарии

ScriptControl наследует от WebControl класса и реализует IScriptControl интерфейс. ScriptControl inherits from the WebControl class and implements the IScriptControl interface. WebControlКласс является базовым классом для серверных веб-элементов управления ASP.NET. The WebControl class is a base class for ASP.NET Web server controls. ScriptControlЯвляется абстрактным классом, экземпляр которого нельзя создать напрямую. The ScriptControl is an abstract class, which you cannot instantiate directly. Вместо этого необходимо создать производный класс на основе этого абстрактного класса. Instead, you derive a class based on this abstract class.

ScriptControlБазовый класс тестирует страницу для ScriptManager элемента управления на PreRender этапе производного элемента управления. The ScriptControl base class tests the page for a ScriptManager control during the PreRender stage of the derived control. ScriptControlБазовый класс также гарантирует, что производный элемент управления вызывает методы ScriptManager элемента управления для регистрации скрипта во время Render события. The ScriptControl base class also makes sure that the derived control calls methods of the ScriptManager control to register script during the Render event. Это включает регистрацию ScriptDescriptor объектов для, ScriptControl когда Render вызывается метод. This includes registering ScriptDescriptor objects for the ScriptControl when the Render method is called. RenderМетод гарантирует, что ScriptDescriptor объекты не подготавливаются к просмотру, пока ScriptControl не будет отображен сам объект. The Render method makes sure that ScriptDescriptor objects are not rendered unless the ScriptControl itself is rendered. Это позволяет ScriptControl работать внутри закрытого WebPart элемента управления. This enables a ScriptControl to work inside a closed WebPart control.

В любой класс, производный от, можно добавить столько дескрипторов и типов, сколько необходимо ScriptControl . You can add as many descriptors and types as necessary to any class that you derive from ScriptControl.

Конструкторы

Инициализирует новый экземпляр класса ScriptControl в производном классе. Initializes a new instance of the ScriptControl class in a derived class.

Свойства

Возвращает или задает клавишу доступа, обеспечивающую быстрый переход к серверному веб-элементу управления. Gets or sets the access key that allows you to quickly navigate to the Web server control.

(Унаследовано от WebControl) Adapter

Возвращает конкретный адаптер браузера для элемента управления. Gets the browser-specific adapter for the control.

(Унаследовано от Control) AppRelativeTemplateSourceDirectory

Возвращает или задает относительно приложения виртуальный каталог объекта Page или UserControl, который содержит этот элемент управления. Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control.

(Унаследовано от Control) Attributes

Получает коллекцию произвольных атрибутов (только для отрисовки), которые не соответствуют свойствам элемента управления. Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.

(Унаследовано от WebControl) BackColor

Получает или задает цвет фона серверного веб-элемента управления. Gets or sets the background color of the Web server control.

(Унаследовано от WebControl) BindingContainer

Возвращает элемент управления, который содержит привязку данных элемента управления. Gets the control that contains this control’s data binding.

(Унаследовано от Control) BorderColor

Возвращает или задает цвет рамки элемента управления Веба. Gets or sets the border color of the Web control.

(Унаследовано от WebControl) BorderStyle

Получает или задает стиль границы серверного веб-элемента управления. Gets or sets the border style of the Web server control.

(Унаследовано от WebControl) BorderWidth

Возвращает или задает ширину границы серверного веб-элемента управления. Gets or sets the border width of the Web server control.

(Унаследовано от WebControl) ChildControlsCreated

Возвращает значение, которое указывает, созданы ли дочерние элементы управления серверного элемента управления. Gets a value that indicates whether the server control’s child controls have been created.

(Унаследовано от Control) ClientID

Получает идентификатор элемента управления для HTML-разметки, созданной ASP.NET. Gets the control ID for HTML markup that is generated by ASP.NET.

(Унаследовано от Control) ClientIDMode

Возвращает или задает алгоритм, используемый для создания значения свойства ClientID. Gets or sets the algorithm that is used to generate the value of the ClientID property.

(Унаследовано от Control) ClientIDSeparator

Возвращает значение символа разделителя, используемого в свойстве ClientID. Gets a character value representing the separator character used in the ClientID property.

Читайте также:  Hp probook 4720s драйвера windows 10 64 bit

(Унаследовано от Control) Context

Возвращает объект HttpContext, связанный с серверным элементом управления для текущего веб-запроса. Gets the HttpContext object associated with the server control for the current Web request.

(Унаследовано от Control) Controls

Возвращает объект ControlCollection, который представляет дочерние элементы управления для указанного элемента управления сервера в иерархии пользовательского интерфейса. Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.

(Унаследовано от Control) ControlStyle

Возвращает или задает стиль серверного веб-элемента управления. Gets the style of the Web server control. Это свойство используется преимущественно разработчиками элементов управления. This property is used primarily by control developers.

(Унаследовано от WebControl) ControlStyleCreated

Возвращает значение, определяющее, был ли объект Style создан для свойства ControlStyle. Gets a value indicating whether a Style object has been created for the ControlStyle property. Этот свойство в основном используется разработчиками элементов управления. This property is primarily used by control developers.

(Унаследовано от WebControl) CssClass

Возвращает или задает класс каскадных листов стилей (CSS), преобразовываемый для просмотра в серверном веб-элементе управления на клиентском компьютере. Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.

(Унаследовано от WebControl) DataItemContainer

Возвращает ссылку на контейнер именования, если контейнер именования реализует класс IDataItemContainer. Gets a reference to the naming container if the naming container implements IDataItemContainer.

(Унаследовано от Control) DataKeysContainer

Возвращает ссылку на контейнер именования, если контейнер именования реализует класс IDataKeysControl. Gets a reference to the naming container if the naming container implements IDataKeysControl.

(Унаследовано от Control) DesignMode

Возвращает значение, указывающее, используется ли элемент управления на поверхности разработки. Gets a value indicating whether a control is being used on a design surface.

(Унаследовано от Control) Enabled

Возвращает или задает значение, определяющее, включен ли серверный веб-элемент управления. Gets or sets a value indicating whether the Web server control is enabled.

(Унаследовано от WebControl) EnableTheming

Возвращает или задает значение, указывающее, применяются ли темы к этому элементу управления. Gets or sets a value indicating whether themes apply to this control.

(Унаследовано от WebControl) EnableViewState

Получает или задает значение, указывающее запрашивающему клиенту, сохраняет ли серверный элемент управления состояние представления и состояние представления своих дочерних элементов управления. Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client.

(Унаследовано от Control) Events

Возвращает список делегатов обработчиков событий элемента управления. Gets a list of event handler delegates for the control. Это свойство доступно только для чтения. This property is read-only.

(Унаследовано от Control) Font

Возвращает свойства шрифта, связанные с серверным веб-элементом управления. Gets the font properties associated with the Web server control.

(Унаследовано от WebControl) ForeColor

Возвращает или задает основной цвет (обычно это цвет текста) для серверного веб-элемента управления. Gets or sets the foreground color (typically the color of the text) of the Web server control.

(Унаследовано от WebControl) HasAttributes

Получает значение, определяющие наличие атрибутов у элемента управления. Gets a value indicating whether the control has attributes set.

(Унаследовано от WebControl) HasChildViewState

Возвращает значение, которое указывает на наличие сохраненных параметров состояния представления у дочернего элемента серверного элемента управления. Gets a value indicating whether the current server control’s child controls have any saved view-state settings.

(Унаследовано от Control) Height

Получает или задает высоту серверного веб-элемента управления. Gets or sets the height of the Web server control.

(Унаследовано от WebControl) ID

Возвращает или задает программный идентификатор, назначенный серверному элементу управления. Gets or sets the programmatic identifier assigned to the server control.

(Унаследовано от Control) IdSeparator

Возвращает символ, используемый для разделения идентификаторов элементов управления. Gets the character used to separate control identifiers.

(Унаследовано от Control) IsChildControlStateCleared

Возвращает значение, указывающее, имеют ли элементы управления в этом элементе управления состояние элемента управления. Gets a value indicating whether controls contained within this control have control state.

(Унаследовано от Control) IsEnabled

Возвращает значение, определяющее, включен ли элемент управления. Gets a value indicating whether the control is enabled.

(Унаследовано от WebControl) IsTrackingViewState

Возвращает значение, отражающее сохранение изменений в состояние представления серверного элемента управления. Gets a value that indicates whether the server control is saving changes to its view state.

(Унаследовано от Control) IsViewStateEnabled

Возвращает значение, указывающее, используется ли состояние представления для этого элемента управления. Gets a value indicating whether view state is enabled for this control.

(Унаследовано от Control) LoadViewStateByID

Возвращает значение, указывающее, участвует ли элемент управления в загрузке состояния представления ID вместо индекса. Gets a value indicating whether the control participates in loading its view state by ID instead of index.

(Унаследовано от Control) NamingContainer

Возвращает ссылку на контейнер именования элемента управления, создающий уникальное пространство имен для различения серверных элементов управления с одинаковыми значениями свойства ID. Gets a reference to the server control’s naming container, which creates a unique namespace for differentiating between server controls with the same ID property value.

(Унаследовано от Control) Page

Возвращает ссылку на экземпляр Page, содержащий серверный элемент управления. Gets a reference to the Page instance that contains the server control.

(Унаследовано от Control) Parent

Возвращает ссылку на родительский элемент управления серверного элемента управления в иерархии элементов управления страницы. Gets a reference to the server control’s parent control in the page control hierarchy.

(Унаследовано от Control) RenderingCompatibility

Возвращает значение, которое задает версию ASP.NET, с которой совместим созданный HTML. Gets a value that specifies the ASP.NET version that rendered HTML will be compatible with.

(Унаследовано от Control) Site

Возвращает сведения о контейнере, который содержит текущий элемент управления при визуализации на поверхности конструктора. Gets information about the container that hosts the current control when rendered on a design surface.

(Унаследовано от Control) SkinID

Возвращает или задает обложку, применяемую к элементу управления. Gets or sets the skin to apply to the control.

(Унаследовано от WebControl) Style

Возвращает коллекцию атрибутов текста, которые будут отображены в виде атрибута стиля на внешнем теге серверного веб-элемента управления. Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control.

(Унаследовано от WebControl) SupportsDisabledAttribute

Получает значение, указывающее, должен ли элемент управления устанавливать для атрибута disabled отрисовываемого элемента HTML значение disabled, если для свойства элемента управления IsEnabled задано значение false . Gets a value that indicates whether the control should set the disabled attribute of the rendered HTML element to «disabled» when the control’s IsEnabled property is false .

(Унаследовано от WebControl) TabIndex

Возвращает или задает индекс перехода по клавише Tab для серверного веб-элемента управления. Gets or sets the tab index of the Web server control.

(Унаследовано от WebControl) TagKey

Возвращает значение HtmlTextWriterTag, которое соответствует этому элементу управления веб-сервера. Gets the HtmlTextWriterTag value that corresponds to this Web server control. Это свойство используется преимущественно разработчиками элементов управления. This property is used primarily by control developers.

(Унаследовано от WebControl) TagName

Возвращает имя тега элемента управления. Gets the name of the control tag. Это свойство используется преимущественно разработчиками элементов управления. This property is used primarily by control developers.

(Унаследовано от WebControl) TemplateControl

Возвращает или задает ссылку на шаблон, содержащий этот элемент управления. Gets or sets a reference to the template that contains this control.

(Унаследовано от Control) TemplateSourceDirectory

Возвращает виртуальный каталог Page или UserControl, содержащий текущий серверный элемент управления. Gets the virtual directory of the Page or UserControl that contains the current server control.

(Унаследовано от Control) ToolTip

Возвращает или задает текст, который отображается при наведении указателя мыши на серверный веб-элемент управления. Gets or sets the text displayed when the mouse pointer hovers over the Web server control.

(Унаследовано от WebControl) UniqueID

Возвращает уникальный идентификатор серверного элемента управления в иерархии. Gets the unique, hierarchically qualified identifier for the server control.

(Унаследовано от Control) ValidateRequestMode

Возвращает или задает значение, указывающее, проверяет ли элемент управления полученный из браузера клиентский ввод на предмет потенциально опасных значений. Gets or sets a value that indicates whether the control checks client input from the browser for potentially dangerous values.

(Унаследовано от Control) ViewState

Возвращает словарь сведений о состоянии, позволяющих сохранять и восстанавливать состояние представления серверного элемента управления при нескольких запросах одной и той же страницы. Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page.

(Унаследовано от Control) ViewStateIgnoresCase

Возвращает значение, указывающее, является ли объект StateBag нечувствительным к регистру. Gets a value that indicates whether the StateBag object is case-insensitive.

(Унаследовано от Control)

Читайте также:  Работа под mac os что это такое
ViewStateMode

Возвращает или задает режим состояния представления данного элемента управления. Gets or sets the view-state mode of this control.

(Унаследовано от Control) Visible

Получает или задает значение, указывающее, отрисовывается ли серверный элемент управления как пользовательский интерфейс на странице. Gets or sets a value that indicates whether a server control is rendered as UI on the page.

(Унаследовано от Control) Width

Получает или задает ширину серверного веб-элемента управления. Gets or sets the width of the Web server control.

(Унаследовано от WebControl)

Методы

Добавляет атрибуты и стили HTML, которые должны быть отображены в указанном элементе управления HtmlTextWriterTag. Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriterTag. Этот метод используется в основном разработчиками элементов управления. This method is used primarily by control developers.

(Унаследовано от WebControl) AddedControl(Control, Int32)

Вызывается после добавления дочернего элемента управления в коллекцию Controls объекта Control. Called after a child control is added to the Controls collection of the Control object.

(Унаследовано от Control) AddParsedSubObject(Object)

Уведомляет серверный элемент управления, что элемент XML или HTML был проанализирован, и добавляет элемент в серверный элемент управления объекта ControlCollection. Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control’s ControlCollection object.

(Унаследовано от Control) ApplyStyle(Style)

Копирует любой непустой элемент указанного стиля в элемент управления Веба, перезаписывая уже существующие элементы стиля. Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. Этот метод, в основном, используется разработчиками элементов управления. This method is primarily used by control developers.

(Унаследовано от WebControl) ApplyStyleSheetSkin(Page)

Применяет свойства стиля, определенные в таблице стилей страницы, к элементу управления. Applies the style properties defined in the page style sheet to the control.

(Унаследовано от Control) BeginRenderTracing(TextWriter, Object)

Запускает трассировку во время разработки данных отрисовки. Begins design-time tracing of rendering data.

(Унаследовано от Control) BuildProfileTree(String, Boolean)

Собирает сведения о серверном элементе управления и доставляет их свойству Trace, которое отображается при включенной на странице трассировке. Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page.

(Унаследовано от Control) ClearCachedClientID()

Задает для кэшированного свойства ClientID значение null . Sets the cached ClientID value to null .

(Унаследовано от Control) ClearChildControlState()

Удаляет сведения о состоянии элемента управления для дочерних элементов управления серверного элемента управления. Deletes the control-state information for the server control’s child controls.

(Унаследовано от Control) ClearChildState()

Удаляет сведения о состоянии элемента управления и состоянии представления для всех дочерних элементов серверного элемента управления. Deletes the view-state and control-state information for all the server control’s child controls.

(Унаследовано от Control) ClearChildViewState()

Удаляет сведения о состоянии представления для всех дочерних элементов серверного элемента управления. Deletes the view-state information for all the server control’s child controls.

(Унаследовано от Control) ClearEffectiveClientIDMode()

Задает для свойства ClientIDMode текущего экземпляра элемента управления и любых его дочерних элементов управления значение Inherit. Sets the ClientIDMode property of the current control instance and of any child controls to Inherit.

(Унаследовано от Control) CopyBaseAttributes(WebControl)

Копирует не инкапсулированные объектом Style свойства из указанного серверного веб-элемента управления веб-сервера в элемент управления веб-сервера, откуда вызывается этот метод. Copies the properties not encapsulated by the Style object from the specified Web server control to the Web server control that this method is called from. Этот метод используется в основном разработчиками элементов управления. This method is used primarily by control developers.

(Унаследовано от WebControl) CreateChildControls()

Вызывается платформой страницы ASP.NET для уведомления серверных элементов управления, использующих составную реализацию, о необходимости создания дочерних элементов управления, содержащихся в них для обратной передачи или отрисовки. Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

(Унаследовано от Control) CreateControlCollection()

Создает новый объект ControlCollection для хранения дочерних элементов управления (литеральных и серверных) серверного элемента управления. Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control.

(Унаследовано от Control) CreateControlStyle()

Создает объект стиля, который используется внутри класса WebControl для реализации всех относящихся к стилю свойств. Creates the style object that is used internally by the WebControl class to implement all style related properties. Этот метод используется в основном разработчиками элементов управления. This method is used primarily by control developers.

(Унаследовано от WebControl) DataBind()

Привязывает источник данных к вызываемому серверному элементу управления и всем его дочерним элементам управления. Binds a data source to the invoked server control and all its child controls.

(Унаследовано от Control) DataBind(Boolean)

Привязывает источник данных к вызванному серверному элементу управления и всем его дочерними элементами управления с возможностью вызова события DataBinding. Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event.

(Унаследовано от Control) DataBindChildren()

Привязывает источник данных к дочерним элементам управления серверного элемента управления. Binds a data source to the server control’s child controls.

(Унаследовано от Control) Dispose()

Включает серверный элемент управления для выполнения окончательной чистки до освобождения памяти. Enables a server control to perform final clean up before it is released from memory.

(Унаследовано от Control) EndRenderTracing(TextWriter, Object)

Завершает трассировку во время разработки данных отрисовки. Ends design-time tracing of rendering data.

(Унаследовано от Control) EnsureChildControls()

Определяет наличие у серверного элемента управления дочерних элементов управления. Determines whether the server control contains child controls. Если дочерних элементов управления нет, они будут созданы. If it does not, it creates child controls.

(Унаследовано от Control) EnsureID()

Создает идентификатор для элементов управления, которые не имеют назначенного идентификатора. Creates an identifier for controls that do not have an identifier assigned.

(Унаследовано от Control) Equals(Object)

Определяет, равен ли указанный объект текущему объекту. Determines whether the specified object is equal to the current object.

(Унаследовано от Object) FindControl(String)

Выполняет поиск серверного элемента управления с заданным параметром id в текущем контейнере именования. Searches the current naming container for a server control with the specified id parameter.

(Унаследовано от Control) FindControl(String, Int32)

Выполняет поиск в текущем контейнере именования серверного элемента управления с указанным id и целым числом, указанным в параметре pathOffset , который содействует поиску. Searches the current naming container for a server control with the specified id and an integer, specified in the pathOffset parameter, which aids in the search. Эту версию метода FindControl не следует переопределять. You should not override this version of the FindControl method.

(Унаследовано от Control) Focus()

Задает фокус ввода на элемент управления. Sets input focus to a control.

(Унаследовано от Control) GetDesignModeState()

Возвращает данные времени разработки для элемента управления. Gets design-time data for a control.

(Унаследовано от Control) GetHashCode()

Служит хэш-функцией по умолчанию. Serves as the default hash function.

(Унаследовано от Object) GetRouteUrl(Object)

Возвращает URL-адрес, соответствующий набору параметров маршрута. Gets the URL that corresponds to a set of route parameters.

(Унаследовано от Control) GetRouteUrl(RouteValueDictionary)

Возвращает URL-адрес, соответствующий набору параметров маршрута. Gets the URL that corresponds to a set of route parameters.

(Унаследовано от Control) GetRouteUrl(String, Object)

Возвращает URL-адрес, соответствующий набору параметров маршрута и имени маршрута. Gets the URL that corresponds to a set of route parameters and a route name.

(Унаследовано от Control) GetRouteUrl(String, RouteValueDictionary)

Возвращает URL-адрес, соответствующий набору параметров маршрута и имени маршрута. Gets the URL that corresponds to a set of route parameters and a route name.

(Унаследовано от Control) GetScriptDescriptors()

Будучи переопределенным в производном классе, возвращает объекты ScriptDescriptor для элемента управления. When overridden in a derived class, returns the ScriptDescriptor objects for the control.

При переопределении в производном классе, возвращает файлы скрипта для элемента управления. When overridden in a derived class, returns the script files for the control.

Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.

(Унаследовано от Object) GetUniqueIDRelativeTo(Control)

Возвращает часть с префиксом свойства UniqueID указанного элемента управления. Returns the prefixed portion of the UniqueID property of the specified control.

(Унаследовано от Control) HasControls()

Определяет наличие у серверного элемента управления дочерних элементов управления. Determines if the server control contains any child controls.

(Унаследовано от Control) HasEvents()

Возвращает значение, указывающее, регистрируются ли события для элемента управления или каких-либо дочерних элементов управления. Returns a value indicating whether events are registered for the control or any child controls.

(Унаследовано от Control) IsLiteralContent()

Определяет наличие у серверного элемента управления только текстового содержимого. Determines if the server control holds only literal content.

(Унаследовано от Control) LoadControlState(Object)

Восстанавливает сведения о состоянии элемента управления предыдущего запроса страницы, сохраненные методом SaveControlState(). Restores control-state information from a previous page request that was saved by the SaveControlState() method.

Читайте также:  Linux не работает видеокарта amd

(Унаследовано от Control) LoadViewState(Object)

Восстанавливает сведения о состоянии просмотра из предыдущего запроса, сохраненного с помощью метода SaveViewState(). Restores view-state information from a previous request that was saved with the SaveViewState() method.

(Унаследовано от WebControl) MapPathSecure(String)

Извлекает физический путь, к которому ведет виртуальный путь (абсолютный или относительный). Retrieves the physical path that a virtual path, either absolute or relative, maps to.

(Унаследовано от Control) MemberwiseClone()

Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.

(Унаследовано от Object) MergeStyle(Style)

Копирует любой непустой элемент указанного стиля в элемент управления Веба, но не перезаписывает уже существующие элементы стиля. Copies any nonblank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. Этот метод используется в основном разработчиками элементов управления. This method is used primarily by control developers.

(Унаследовано от WebControl) OnBubbleEvent(Object, EventArgs)

Определяет, передается ли событие серверного элемента управления вверх по иерархии серверных элементов управления пользовательского интерфейса страницы. Determines whether the event for the server control is passed up the page’s UI server control hierarchy.

(Унаследовано от Control) OnDataBinding(EventArgs)

Вызывает событие DataBinding. Raises the DataBinding event.

(Унаследовано от Control) OnInit(EventArgs)

Вызывает событие Init. Raises the Init event.

(Унаследовано от Control) OnLoad(EventArgs)

Вызывает событие Load. Raises the Load event.

(Унаследовано от Control) OnPreRender(EventArgs)

Вызывает событие OnPreRender(EventArgs) и регистрирует элемент управления скриптом с элементом управления ScriptManager. Raises the OnPreRender(EventArgs) event and registers the script control with the ScriptManager control.

Вызывает событие Unload. Raises the Unload event.

(Унаследовано от Control) OpenFile(String)

Возвращает Stream, используемое для чтения файла. Gets a Stream used to read a file.

(Унаследовано от Control) RaiseBubbleEvent(Object, EventArgs)

Присваивает родительскому элементу управления все источники события и сведения о них. Assigns any sources of the event and its information to the control’s parent.

(Унаследовано от Control) RemovedControl(Control)

Вызывается после удаления дочернего элемента управления из коллекции Controls объекта Control. Called after a child control is removed from the Controls collection of the Control object.

(Унаследовано от Control) Render(HtmlTextWriter)

Порождает событие Render(HtmlTextWriter) и отправляет содержимое серверного элемента управления предоставленному объекту HtmlTextWriter, который записывает содержимое для отображения в окне браузера. Raises the Render(HtmlTextWriter) event and sends server control content to a provided HtmlTextWriter object, which writes the content to be rendered to the browser.

Выводит открывающий HTML-тег элемента управления в указанное средство записи. Renders the HTML opening tag of the control to the specified writer. Этот метод используется в основном разработчиками элементов управления. This method is used primarily by control developers.

(Унаследовано от WebControl) RenderChildren(HtmlTextWriter)

Выводит содержимое дочерних элементов серверного элемента управления в предоставленный объект HtmlTextWriter, который записывает это содержимое для подготовки к просмотру на клиенте. Outputs the content of a server control’s children to a provided HtmlTextWriter object, which writes the content to be rendered on the client.

(Унаследовано от Control) RenderContents(HtmlTextWriter)

Выводит содержимое элемента управления в заданный модуль записи. Renders the contents of the control to the specified writer. Этот метод используется в основном разработчиками элементов управления. This method is used primarily by control developers.

(Унаследовано от WebControl) RenderControl(HtmlTextWriter)

Выводит содержимое серверного элемента управления в указанный объект HtmlTextWriter и сохраняет сведения о трассировке элемента управления, если трассировка включена. Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

(Унаследовано от Control) RenderControl(HtmlTextWriter, ControlAdapter)

Выводит серверный элемент управления в указанный объект HtmlTextWriter, используя указанный объект ControlAdapter. Outputs server control content to a provided HtmlTextWriter object using a provided ControlAdapter object.

(Унаследовано от Control) RenderEndTag(HtmlTextWriter)

Отображает закрывающий HTML-тег элемента управления в указанное средство записи. Renders the HTML closing tag of the control into the specified writer. Этот метод используется в основном разработчиками элементов управления. This method is used primarily by control developers.

(Унаследовано от WebControl) ResolveAdapter()

Возвращает адаптер элемента управления, отвечающий за отрисовку определенного элемента управления. Gets the control adapter responsible for rendering the specified control.

(Унаследовано от Control) ResolveClientUrl(String)

Возвращает URL-адрес, который может использоваться браузером. Gets a URL that can be used by the browser.

(Унаследовано от Control) ResolveUrl(String)

Преобразует URL-адрес в адрес, доступный для клиента. Converts a URL into one that is usable on the requesting client.

(Унаследовано от Control) SaveControlState()

Сохраняет любые изменения состояния серверного элемента управления, произошедшие после отправки страницы обратно на сервер. Saves any server control state changes that have occurred since the time the page was posted back to the server.

(Унаследовано от Control) SaveViewState()

Сохраняет любое состояние, которое было изменено после вызова метода TrackViewState(). Saves any state that was modified after the TrackViewState() method was invoked.

(Унаследовано от WebControl) SetDesignModeState(IDictionary)

Задает данные времени разработки для элемента управления. Sets design-time data for a control.

(Унаследовано от Control) SetRenderMethodDelegate(RenderMethod)

Назначает делегата обработчика событий для преобразования серверного элемента управления и его содержимого для просмотра в родительский элемент управления. Assigns an event handler delegate to render the server control and its content into its parent control.

(Унаследовано от Control) SetTraceData(Object, Object)

Задает данные трассировки для трассировки данных отрисовки во время разработки, используя ключ данных трассировки и значение данных трассировки. Sets trace data for design-time tracing of rendering data, using the trace data key and the trace data value.

(Унаследовано от Control) SetTraceData(Object, Object, Object)

Задает данные трассировки для трассировки данных отрисовки во время разработки, используя трассируемый объект, ключ данных трассировки и значение данных трассировки. Sets trace data for design-time tracing of rendering data, using the traced object, the trace data key, and the trace data value.

(Унаследовано от Control) ToString()

Возвращает строку, представляющую текущий объект. Returns a string that represents the current object.

(Унаследовано от Object) TrackViewState()

Заставляет элемент управления отслеживать изменения в состоянии его представления, чтобы их можно было сохранить в свойстве ViewState объекта. Causes the control to track changes to its view state so they can be stored in the object’s ViewState property.

(Унаследовано от WebControl)

События

Происходит при привязке серверного элемента управления к источнику данных. Occurs when the server control binds to a data source.

(Унаследовано от Control) Disposed

Происходит при освобождении памяти, занятой серверным элементом управления, т.е. на последнем этапе жизненного цикла серверного элемента управления при запросе страницы ASP.NET. Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.

(Унаследовано от Control) Init

Происходит при инициализации серверного элемента управления, который находится на первом этапе его жизненного цикла. Occurs when the server control is initialized, which is the first step in its lifecycle.

(Унаследовано от Control) Load

Происходит при загрузке серверного элемента управления в объект Page. Occurs when the server control is loaded into the Page object.

(Унаследовано от Control) PreRender

Происходит после загрузки объекта Control, но перед отрисовкой. Occurs after the Control object is loaded but prior to rendering.

(Унаследовано от Control) Unload

Происходит при выгрузке серверного элемента управления из памяти. Occurs when the server control is unloaded from memory.

(Унаследовано от Control)

Явные реализации интерфейса

Возвращает атрибуту веб-элемента управления указанное имя. Gets an attribute of the Web control with the specified name.

(Унаследовано от WebControl) IAttributeAccessor.SetAttribute(String, String)

Задает атрибуту веб-элемента управления указанное имя и значение. Sets an attribute of the Web control to the specified name and value.

(Унаследовано от WebControl) IControlBuilderAccessor.ControlBuilder

Описание этого члена см. в разделе ControlBuilder. For a description of this member, see ControlBuilder.

(Унаследовано от Control) IControlDesignerAccessor.GetDesignModeState()

Описание этого члена см. в разделе GetDesignModeState(). For a description of this member, see GetDesignModeState().

(Унаследовано от Control) IControlDesignerAccessor.SetDesignModeState(IDictionary)

Описание этого члена см. в разделе SetDesignModeState(IDictionary). For a description of this member, see SetDesignModeState(IDictionary).

(Унаследовано от Control) IControlDesignerAccessor.SetOwnerControl(Control)

Описание этого члена см. в разделе SetOwnerControl(Control). For a description of this member, see SetOwnerControl(Control).

(Унаследовано от Control) IControlDesignerAccessor.UserData

Описание этого члена см. в разделе UserData. For a description of this member, see UserData.

(Унаследовано от Control) IDataBindingsAccessor.DataBindings

Описание этого члена см. в разделе DataBindings. For a description of this member, see DataBindings.

(Унаследовано от Control) IDataBindingsAccessor.HasDataBindings

Описание этого члена см. в разделе HasDataBindings. For a description of this member, see HasDataBindings.

(Унаследовано от Control) IExpressionsAccessor.Expressions

Описание этого члена см. в разделе Expressions. For a description of this member, see Expressions.

(Унаследовано от Control) IExpressionsAccessor.HasExpressions

Описание этого члена см. в разделе HasExpressions. For a description of this member, see HasExpressions.

(Унаследовано от Control) IParserAccessor.AddParsedSubObject(Object)

Описание этого члена см. в разделе AddParsedSubObject(Object). For a description of this member, see AddParsedSubObject(Object).

(Унаследовано от Control) IScriptControl.GetScriptDescriptors()

При переопределении в производном классе, регистрирует объект ScriptDescriptor для элемента управления. When overridden in a derived class, registers the ScriptDescriptor objects for the control.

При переопределении в производном классе, регистрирует файлы скрипта для элемента управления. When overridden in a derived class, registers script files for the control.

Методы расширения

Возвращает источник данных, связанный с элементом управления данными, для заданного элемента управления. Returns the data source that is associated with the data control for the specified control.

Возвращает шаблон поля для заданного столбца в контейнере именования заданного элемента управления. Returns the field template for the specified column in the specified control’s naming container.

Возвращает объект метатаблицы для контейнерного элемента управления данными. Returns the metatable object for the containing data control.

Оцените статью