Rename parameter in a WCF client interface

I was wondering if there is a way to rename a parameter in a WCF client interface method ,just the same way I can rename methods or enumerations:

Renaming methods:

[System.Runtime.Serialization.DataMemberAttribute(Name = "intError")]
        public int ErrorCode {...}

Renaming enumerations:

public enum MyEnumeration: int {

        [System.Runtime.Serialization.EnumMemberAttribute()]
        None = 0,

        [System.Runtime.Serialization.EnumMemberAttribute(Value = "FirstOption")]
        First= 1,

        [System.Runtime.Serialization.EnumMemberAttribute()]
        SecondOption= 2,
    }

Renaming parameters??

I want to rename an interface parameter named "error" which FxCop doesn't like. Any help will be appreciated. Thank you.

Answers


Use MessageParameter for renaming parametrs:

 void LoadOrder([MessageParameter(Name = "StockCode")]string stockCode,
        [MessageParameter(Name = "OrderCode")]string orderCode);

Need Your Help

Two select buttons on one page

javascript drop-down-menu

I have put one dropdown select button on my page for cars, it displays a price for the selected dropdown item and puts the value on the page, but I need to put another on the same page but for boat...

Queue Select Range between specific entries

c# c#-4.0

I am creating a serial protocol parser and would like some help filtering the queue data. I've created serial parsers in the past (using c/c++), but this time I am using C# which i am omittedly a ...