in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

Calling method in separate assembly with optional parameter

Last post 11-30-2007 7:48 AM by ThaYoung1!. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 11-30-2007 7:48 AM

    Calling method in separate assembly with optional parameter

    Hi all,

    I'm developing a webpart which references a separate assembly. This assembly has a class with methods and properties. One of the properties has an optional parameter specified. The signature is;

    Public Shared ReadOnly Property Item(ByVal key As String, Optional ByVal maxAge As Integer = 0) As Object

    When I call this property I get an error on Sharepoint with a question mark (?) and the exception details "System.MissingMethodException: ?". Can't sharepoint work with remote properties / methods with optional parameters or am I missing something?

    Cheers,

    ThaYoung1!

Page 1 of 1 (1 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.