WebBaseEvent.Raise 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
WebBaseEvent 구성된 공급자에게 이벤트가 발생했음을 알려 이벤트를 발생합니다.
오버로드
| Name | Description |
|---|---|
| Raise() |
구성된 공급자에게 이벤트가 발생했음을 알려 이벤트를 발생합니다. |
| Raise(WebBaseEvent) |
구성된 공급자에게 이벤트가 발생했음을 알려 지정된 이벤트를 발생합니다. |
Raise()
구성된 공급자에게 이벤트가 발생했음을 알려 이벤트를 발생합니다.
public:
virtual void Raise();
public virtual void Raise();
abstract member Raise : unit -> unit
override this.Raise : unit -> unit
Public Overridable Sub Raise ()
예제
다음 코드 예제에서는 메서드를 사용 하는 방법을 보여 있습니다 Raise .
// Raises the SampleWebBaseEvent.
public override void Raise()
{
// Perform custom processing.
customRaisedMsg =
string.Format("Event raised at: {0}",
EventTime.ToString());
// Raise the event.
base.Raise();
}
' Raises the SampleWebBaseEvent.
Public Overrides Sub Raise()
' Perform custom processing.
customRaisedMsg = String.Format( _
"Event raised at: {0}", DateTime.Now.TimeOfDay.ToString())
' Raise the event.
MyBase.Raise()
End Sub
설명
이 메서드를 재정의하는 경우 발생한 이벤트는 사용자 지정 이벤트입니다.
메모
이벤트를 발생하려면 중간 신뢰 이상이 필요합니다.
추가 정보
적용 대상
Raise(WebBaseEvent)
구성된 공급자에게 이벤트가 발생했음을 알려 지정된 이벤트를 발생합니다.
public:
static void Raise(System::Web::Management::WebBaseEvent ^ eventRaised);
public static void Raise(System.Web.Management.WebBaseEvent eventRaised);
static member Raise : System.Web.Management.WebBaseEvent -> unit
Public Shared Sub Raise (eventRaised As WebBaseEvent)
매개 변수
- eventRaised
- WebBaseEvent
WebBaseEvent 개체입니다.
예외
EventCode
eventRaised 속성에는 ASP.NET 예약된 값이 있습니다.
예제
다음 코드 예제에서는 메서드를 사용 하는 방법을 보여 있습니다 Raise .
// Raises the SampleWebBaseEvent.
public void CustomRaise(
System.Web.Management.WebBaseEvent evnt)
{
// Raise the event.
Raise(evnt);
}
' Raises the SampleWebBaseEvent.
Public Sub CustomRaise(ByVal evnt _
As System.Web.Management.WebBaseEvent)
' Raise the event.
Raise(evnt)
End Sub
설명
이 메서드는 구성된 공급자에게 이벤트가 발생했음을 알려 지정된 이벤트를 발생합니다.
메모
이벤트를 발생하려면 중간 신뢰 이상이 필요합니다.