如果您建立自己的客户程序,就要有一个用户接口,或者决定要一个直接调用这些方法的自动系统。
If you were building your own client you might have a user interface, or you might decide to have an automated system that calls these methods directly.
这两次方法调用的第一个参数是一个正则表达式,用于指定用户可能传入的URL。
The first argument of both of these calls is a regular expression specifying the URL that the customer may pass in.
例如,如果用户选择了一个组件,然后按住shift键并选择另外三个组件,则每次向选择列表中进行添加时,都会调用该方法。
For example, if a user selects one component and then holds down the shift key and selects another three, the method is called for each addition to the selection list.
此servlet实例化一个UserDataBean,然后从请求对象读取所有的参数并在用户对象中使用set方法调用设置这个 UserDataBean,如下所示。
The servlet instantiates a UserDataBean, then it reads all the parameters from the request object and sets it in the user object, using the set methods calls as shown below.
随后调用jQueryblur方法,后者将一个函数绑定到用户名字段的onblur事件。
It then calls the jQuery blur method, which binds a function to the onblur event for the username field.
Eclipse有一个用于管理用户界面的线程,而且某些SWTAPI方法只能通过该线程调用(有关更多信息,请参阅参考资料)。
Eclipse has a single thread for managing the user interface, and some SWT API methods may only be called from that thread. (see Resources for more information).
这对于仅仅创建一个用户来说,所使用的远程方法调用相当多。
html(清单22)是一个简单的html文件,提供给用户一个GUI并询问他将要调用哪一个SOAP方法。
StartUp.html (Listing 22) is a simple HTML file that presents a GUI to the user and asks which SOAP method he or she wants to invoke.
将一些方法声明为Private是一个很好的做法,以便保持代码和逻辑位于类中,同时不允许用户直接调用方法。
Declaring some methods Private is a good way to keep code and logic inside a class while not allowing it to be called directly by a user.
当一个用户使用业务组件工作时,业务组件代码可以通过调用CommunityLocator方法isUserInDomainRole确定该用户属于哪个域角色。
When a user works with the business component, the business component code is able to determine which domain role the user belongs to by calling the CommunityLocator method isUserInDomainRole.
让人高兴的是一个事件能够在你的用户界面中被分发达20层,而无需设置一个全局属性/调用一个全局方法(如ModelLocator)。
The joy is being able to dispatch an event 20 levels into your UI without setting a globally available property/calling a globally available method, such as ModelLocator.
generatepdf函数创建了一个InvoicePdf对象,调用其CreateInvoice方法,然后发送一个名为Your _ Invoice .pdf的下载pd f文档给用户的浏览器。
The generatePDF function creates an InvoicePdf object, calls its CreateInvoice method, then sends the PDF document as a download named Your_Invoice.pdf to the user's browser.
此servlet设置命令bean中的用户标识,然后调用execute()方法,使命令 bean获取差事列表(它为此调用一个EJB)。
The servlet sets the user ID in the command bean then invokes the execute() method, causing the command bean to get the errand list (it invokes an EJB for this).
总之,REST仅仅是一个规范,提供了一种标准方法供用户使用Web服务风格中的HTTP请求方法调用对Web资源的操作。
To summarize, REST is simply a specification that indicates a standard approach for a user to invoke operations on a Web resource using HTTP request methods in a Web service style.
当使用内联方法编程风格时,用户可以调用Data接口中定义的方法,将sql语句作为方法调用中的一个参数。
When using inline methods, you can invoke methods defined in the data interface and pass the SQL statement as a parameter in the invocation of a method.
当你想去测试一个系统调用模块时,编写一个用户空间的程序来执行一个系统调用是种“正规”的方法。但首先要编写额外的程序,这是恼人的事情。怎样才可以执行一个系统调用而又不用编写用户空间的程序呢?
While writing a user space program to execute a system call is the "proper" way to do it, when you just want to test a system call module, it's annoying to have to write an additional program first.
这不是一个复杂的过程,但它要从AppRoleManager类获取角色数据,然后调用将用户与角色关联在一起的AppUserMangager类所定义的方法。
This isn't a complicated process, but it invokes taking the role data from the AppRoleManager class and then calling the methods defined by the AppUserMangager class that associate users with roles.
因为每个用户请求都联合一个单独的线程,多线程或多用户可以同时调用服务方法。
Because each user request is associated with a separate thread, multiple threads or users can invoke the service method at the same time.
例如,您可以创建一个在用户单击功能区上的按钮时调用的回调方法。
For example, you can create a callback method that is called when a user clicks a button on the Ribbon.
调用对应的用户自定义函数,其参数个数比普通的 函数调用多一:该实例成为方法的第一个参数。
The corresponding user-defined function is called, with an argument list that is one longer than the argument list of the call: the instance becomes the first argument.
ClaimsIdentity的实例是调用用户管理器的CreateIdentityAsync方法而创建的,在其中传递了一个用户对象和DefaultAuthenticationTypes枚举中的一个值。
Instances of ClaimsIdentity are created by calling the user manager CreateIdentityAsync method, passing in a user object and a value from the DefaultAuthenticationTypes enumeration.
ClaimsIdentity的实例是调用用户管理器的CreateIdentityAsync方法而创建的,在其中传递了一个用户对象和DefaultAuthenticationTypes枚举中的一个值。
Instances of ClaimsIdentity are created by calling the user manager CreateIdentityAsync method, passing in a user object and a value from the DefaultAuthenticationTypes enumeration.
应用推荐