[英]VB.NET Connected SAP WSDL Preventing Solution from building
我正在嘗試構建一個 .NET Class 庫,它使用 SAP 生成的 WSDL。
在其中一個 WSDL 生成的reference.vb
文件中,我在該行中收到以下錯誤:
<System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, Order:=0)> _
錯誤為BC30369 Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
on System
.
這只發生在它生成的其中一個部分公共類中,而不是 rest。
刪除系統后它可以工作:
''' <System.Xml.Serialization.XmlElementAttribute(Form:=Xml.Schema.XmlSchemaForm.Unqualified)> Public Property MESSAGE_V4() As String Get Return Me.mESSAGE_V4Field End Get Set Me.mESSAGE_V4Field = Value End Set End 屬性
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.