Name attribute not found - WeOnlyDo Discussion board

Name attribute not found (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Limey, Tuesday, September 16, 2014, 19:16 (3481 days ago)

Any idea on why I might get this pre-compile error?

'WeOnlyDo.Client.SFTP.AttributesArgs' does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type 'WeOnlyDo.Client.SFTP.AttributesArgs' could be found (are you missing a using directive or an assembly reference?)


The code does compile and run, and the name attribute is usable, but just can't be seen by Visual Studio.

wodSFTP.AttributesDataEvent += new WeOnlyDo.Client.SFTP.AttributesDataDelegate(wodSFTP_AttributesDataEvent);


void wodSFTP_AttributesDataEvent(object Sender, WeOnlyDo.Client.SFTP.AttributesArgs[] Args)
{
int i = 0;
int lowerB = Args.GetLowerBound(i);
int upperB = Args.GetUpperBound(i);

for (i = lowerB; i <= upperB; i++)
{
_ExistingRemoteFiles.Add(Args.Name); //Will still build and run with an error on Name
}

}


Complete thread: