Я собираюсь [сборка: System.CLSCompliant (true)] внутри сборок моего решения C#.Как обращаться с CLS-совместимым в веб-ссылке?
Теперь я получаю несколько предупреждений внутри сгенерированного кода для веб-службы SharePoint.
Вот один из методов, которые не являются CLS-совместимые:
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/GetItem", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public uint GetItem(string Url, out FieldInformation[] Fields, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] out byte[] Stream) {
object[] results = this.Invoke("GetItem", new object[] {
Url});
Fields = ((FieldInformation[])(results[1]));
Stream = ((byte[])(results[2]));
return ((uint)(results[0]));
}
Как я могу удалить это предупреждение?
Спасибо, Keith