Example of an interface.

Namespace: SampleClassLibrary
Assembly: SampleClassLibrary (in SampleClassLibrary.dll)

Public Interface ISampleInterface
This language is not supported or no code example is available.
public interface ISampleInterface
This language is not supported or no code example is available.
type ISampleInterface = interface end
This language is not supported or no code example is available.
public interface class ISampleInterface
This language is not supported or no code example is available.
public interface ISampleInterface
This language is not supported or no code example is available.
Name Description
Public method TestMethod(int) A method with an optional parameter.
Top

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Core

Supported in: 1.0, 1.1, 2.0

.NET Standard

Supported in: 2.0

Xamarin.Android

Supported in: 7.1

Portable Class Library

Supported in: Portable Class Library