1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <FilterProperties( "GetProperties" })> _ Public Class ScriptMain ... Public Function GetProperties() As String () Dim result As New ArrayList Call result.Add( "Action" ) ' Action is always included. If Me .Action = "Upload File" Then Call result.Add( "SourceFil" ) ElseIf Me .Action = "Download File" Then Call result.Add( "TargetFolder" ) End If Return CType (result.ToArray( GetType ( String )), String ()) End Function |
You may also check the sample script Http Upload/Download Task