更改参数中常量变量的值

更改参数中常量变量的值

本文介绍了更改参数中常量变量的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的iam在将变量作为参数传递给需要恒定输入的方法时遇到了一些麻烦.实际上,iam试图实现这一点:

http://msdn.microsoft.com/en-us/library/aa905668.aspx [ ^ ]

iam遇到麻烦的代码是:


alright iam having some trouble with passing a variable as an argument to a method which requires constant input. Actually iam trying to implement this :

http://msdn.microsoft.com/en-us/library/aa905668.aspx[^]

the code in which iam having trouble is :


 <XmlRpcUrl(xmlrpcurl)> _
Public Interface IWP
        Inherits IXmlRpcProxy

        <xmlrpcmethod("metaweblog.getcategories")> _
         Function getCategories(ByVal args() As String) As category()

        <xmlrpcmethod("metaweblog.newpost")> _
          Function newPost(ByVal blogid As String, ByVal username As String, ByVal password As String, ByVal content As Post, ByVal publish As Boolean) As String

    End Interface




您会看到< xmlrpcurl()>需要一个恒定的值,但我想从用户那里获取输入(可能是一个文本框?).但是显示一个错误,表明需要一个常量变量.

有人有任何解决方法的想法吗?

我也知道接口.但是第一行(< xmlrpcurl()>)是什么意思?




you see <xmlrpcurl()> needs a constant value, but i want to take the input from the user (a textbox maybe ?). But is shows an error saying that a constant variable is required.

does anybody have an idea of any workaround?

Also i know about interfaces. but what is the meaning of the first line (<xmlrpcurl()>) ?

推荐答案


这篇关于更改参数中常量变量的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 03:02