이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
MATLAB의 .NET 이벤트와 .NET 대리자
R2026a.NET 이벤트 콜백 사용, .NET 대리자(Delegate) 생성과 호출
대리자는 이벤트가 트리거될 때 C#에 호출할 메서드를 알리는 방법입니다. 이벤트는 동작이 발생했음을 알리기 위해 .NET에서 제공하는 알림입니다. 여기에서는 MATLAB®에서 .NET 이벤트와 .NET 대리자를 사용하는 방법을 보여줍니다.
함수
BeginInvoke | 비동기 .NET 대리자(Delegate) 호출 시작 |
EndInvoke | .NET System.Delegate BeginInvoke 메서드로 시작된 비동기 호출(Asynchronous Call)의 결과 검색 |
Combine | 정적 .NET System.Delegate Combine 메서드 |
Remove | 정적 .NET System.Delegate Remove 메서드 |
RemoveAll | Static .NET System.Delegate
RemoveAll method |
도움말 항목
- Use .NET Events in MATLAB
These examples use the
addlistenerfunction to handle .NET events with MATLAB callbacks. - Call .NET Delegates in MATLAB
This example shows you how to use a delegate in MATLAB.
- Create Delegates from .NET Object Methods
This example shows how to create a delegate.
- Create Delegate Instances Bound to .NET Methods
This example shows how to use delegate instances.
- Combine and Remove .NET Delegates
This example shows how to manage delegates.
- 이벤트 및 리스너 개요
이벤트 및 리스너를 사용하여 메시지를 보내고 메시지에 응답할 수 있습니다.
- .NET Delegates
In .NET, a delegate is a type that defines a method signature.
- .NET Delegates With out and ref Type Arguments
The MATLAB rules for mapping
outandreftypes for delegates are the same as for methods. - Call .NET Methods Asynchronously
How MATLAB handles asynchronous method calls.
문제 해결