An interface declaration may optionally include a sequence of interface modifiers.
interface-modifiers:
interface-modifier
interface-modifiers interface-modifier
interface-modifier:
Public
Friend
Partial
It is a compile error for the same modifier to appear multiple times in an interface declaration. The Public and Friend modifiers determine interface access level. Depending on the context, in which an interface is declared, only some of them can be used.
//Interface available in this assembly
//and all assemblies where this assembly is referred to
Public Interface IMyInterface
End Interface;
//Interface available only in a given assembly
Friend Interface IMyInterface1
End Interface;
//Partial interface
Partial Interface IPart
Sub Test1();
End Interface;
//Expanding partial interface
Partial Interface IPart
Sub Test2();
End Interface;
//Partial interface implementation
Class UserObject: IPart
Public Sub Test1();
Begin
End Sub;
Public Sub Test2();
Begin
End Sub;
End Class;
See also: