J'active [assembly: System.CLSCompliant (true)] à l'intérieur des assemblys de ma solution C#.Comment gérer CLS-conforme dans une référence Web?
Je reçois maintenant quelques avertissements dans le code généré pour un service Web SharePoint.
Voici l'une des méthodes qui ne sont pas conformes 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]));
}
Comment puis-je supprimer cet avertissement?
Merci, Keith